Remove incorrect copyright | minor refinement of code convention

This commit is contained in:
dohoangkhiem 2015-07-23 10:57:44 +07:00
parent 54a79ff856
commit f27a817cbf

View file

@ -1,6 +1,4 @@
#!/usr/bin/python #!/usr/bin/python
# Copyright 2015 Google Inc. All Rights Reserved.
#
# This file is part of Ansible # This file is part of Ansible
# #
# Ansible is free software: you can redistribute it and/or modify # Ansible is free software: you can redistribute it and/or modify
@ -214,15 +212,11 @@ def main():
# add tags to instance. # add tags to instance.
if state == 'present': if state == 'present':
results = add_tags(gce, module, instance_name, tags) changed, tags_changed = add_tags(gce, module, instance_name, tags)
changed = results[0]
tags_changed = results[1]
# remove tags from instance # remove tags from instance
if state == 'absent': if state == 'absent':
results = remove_tags(gce, module, instance_name, tags) changed, tags_changed = remove_tags(gce, module, instance_name, tags)
changed = results[0]
tags_changed = results[1]
module.exit_json(changed=changed, instance_name=instance_name, tags=tags_changed, zone=zone) module.exit_json(changed=changed, instance_name=instance_name, tags=tags_changed, zone=zone)
sys.exit(0) sys.exit(0)