1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove incorrect copyright | minor refinement of code convention

This commit is contained in:
dohoangkhiem 2015-07-23 10:57:44 +07:00 committed by Matt Clay
parent 3c4fa05ef0
commit 08e4ef5120

View file

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