Make sure license header is added to the auto-generated file.
@@ -280,7 +280,22 @@ def parse():
def dump():
sizes, regions = parse()
- print("# File generated by script")
+ print("# File generated by script - DO NOT EDIT manually")
+ print("# Licensed to the Apache Software Foundation (ASF) under one or more")
+ print("# contributor license agreements. See the NOTICE file distributed with")
+ print("# this work for additional information regarding copyright ownership.")
+ print("# The ASF licenses this file to You under the Apache License, Version 2.0")
+ print("# (the \"License\"); you may not use this file except in compliance with")
+ print("# the License. You may obtain a copy of the License at")
+ print("#")
+ print("# http://www.apache.org/licenses/LICENSE-2.0")
+ print("#")
+ print("# Unless required by applicable law or agreed to in writing, software")
+ print("# distributed under the License is distributed on an \"AS IS\" BASIS,")
+ print("# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.")
+ print("# See the License for the specific language governing permissions and")
+ print("# limitations under the License.")
+
print("INSTANCE_TYPES = " + json.dumps(sizes, indent=4, sort_keys=True).replace('null', 'None'))
print("REGION_DETAILS = " + json.dumps(regions, indent=4, sort_keys=True))
