From f27a817cbf1827b897e89227553f541f4a19841d Mon Sep 17 00:00:00 2001 From: dohoangkhiem Date: Thu, 23 Jul 2015 10:57:44 +0700 Subject: [PATCH] Remove incorrect copyright | minor refinement of code convention --- cloud/google/gce_tag.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cloud/google/gce_tag.py b/cloud/google/gce_tag.py index 205f52cb393..186f570b3f1 100644 --- a/cloud/google/gce_tag.py +++ b/cloud/google/gce_tag.py @@ -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)