summaryrefslogtreecommitdiff
path: root/cloudinit/DataSourceOVF.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-01-17 15:55:55 -0500
committerScott Moser <smoser@ubuntu.com>2012-01-17 15:55:55 -0500
commitdcb543887bcb0770bbb7b102e9d6a7c732d0228d (patch)
treef7eefe035f11a8dae80abbb09832067a51e5887a /cloudinit/DataSourceOVF.py
parent8ffe7b00528f6d5abe9ffad6b6e615fb564261be (diff)
downloadvyos-cloud-init-dcb543887bcb0770bbb7b102e9d6a7c732d0228d.tar.gz
vyos-cloud-init-dcb543887bcb0770bbb7b102e9d6a7c732d0228d.zip
remove occurences of pylint W0621 (Redefining name xyz from outer scope)
Diffstat (limited to 'cloudinit/DataSourceOVF.py')
-rw-r--r--cloudinit/DataSourceOVF.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/cloudinit/DataSourceOVF.py b/cloudinit/DataSourceOVF.py
index 02c85f73..1a527524 100644
--- a/cloudinit/DataSourceOVF.py
+++ b/cloudinit/DataSourceOVF.py
@@ -312,16 +312,19 @@ def get_datasource_list(depends):
if __name__ == "__main__":
- import sys
- envStr = open(sys.argv[1]).read()
- props = getProperties(envStr)
- import pprint
- pprint.pprint(props)
-
- md, ud, cfg = read_ovf_environment(envStr)
- print "=== md ==="
- pprint.pprint(md)
- print "=== ud ==="
- pprint.pprint(ud)
- print "=== cfg ==="
- pprint.pprint(cfg)
+ def main():
+ import sys
+ envStr = open(sys.argv[1]).read()
+ props = getProperties(envStr)
+ import pprint
+ pprint.pprint(props)
+
+ md, ud, cfg = read_ovf_environment(envStr)
+ print "=== md ==="
+ pprint.pprint(md)
+ print "=== ud ==="
+ pprint.pprint(ud)
+ print "=== cfg ==="
+ pprint.pprint(cfg)
+
+ main()