Fix linters

Change-Id: Ide46cd2379d6ba32c844a9779ecfd32faead7b35
This commit is contained in:
Dmitriy Rabotyagov 2020-10-01 13:44:46 +03:00
parent af7932136e
commit b88a8fbb16
6 changed files with 6 additions and 0 deletions

View File

@ -154,5 +154,6 @@ def main():
rolling_restart(containers, inventory, wait)
if __name__ == "__main__":
main()

View File

@ -41,6 +41,7 @@ def add_new_dict_data(original, new):
add_new_dict_data(original[key], new[key])
if __name__ == '__main__':
repo_root = sys.argv[1]

View File

@ -40,6 +40,7 @@ def clean_vars():
f.write(yaml.safe_dump(environment, default_flow_style=False,
width=1000))
if __name__ == '__main__':
clean_vars()
with open('/etc/openstack_deploy.KILO/CEILOMETER_MIGRATED', 'w') as f:

View File

@ -79,6 +79,7 @@ def main(filename):
with open(filename, 'w') as f:
f.write(''.join(new_contents))
if __name__ == '__main__':
if len(sys.argv) < 3:
sys.exit("Filename and flag file reference required.")

View File

@ -57,6 +57,7 @@ def main(filename):
with open(filename, 'w') as f:
f.write(''.join(new_contents))
if __name__ == '__main__':
if len(sys.argv) < 3:
sys.exit("Filename and flag file reference required.")

View File

@ -57,6 +57,7 @@ def main(filename):
with open(filename, 'w') as f:
f.write(''.join(new_contents))
if __name__ == '__main__':
if len(sys.argv) < 3:
sys.exit("Filename and flag file reference required.")