Merge "Add warning header to opts.py file"

This commit is contained in:
Jenkins 2017-06-06 11:45:29 +00:00 committed by Gerrit Code Review
commit e2f7d28e48
2 changed files with 21 additions and 0 deletions

View File

@ -47,6 +47,18 @@ if __name__ == "__main__":
""")
opt_file.write(license_str)
edit_header = textwrap.dedent(
"""
###################################################################
# WARNING!
#
# Do not edit this file directly. This file should be generated by
# running the command "tox -e genopts" any time a config option
# has been added, changed, or removed.
###################################################################\n
""")
opt_file.write(edit_header)
opt_file.write("import itertools\n\n")
# NOTE(geguileo): We need to register all OVOs before importing any other

View File

@ -12,6 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
###################################################################
# WARNING!
#
# Do not edit this file directly. This file should be generated by
# running the command "tox -e genopts" any time a config option
# has been added, changed, or removed.
###################################################################
import itertools
from cinder import objects