git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ebb5d7
)
only call GetConfiguration if running script as main
author
Scott Baker
<smbaker@gmail.com>
Sun, 1 Sep 2013 22:14:34 +0000
(15:14 -0700)
committer
Scott Baker
<smbaker@gmail.com>
Sun, 1 Sep 2013 22:14:34 +0000
(15:14 -0700)
planetstack/tests/GetConfiguration.py
patch
|
blob
|
history
diff --git
a/planetstack/tests/GetConfiguration.py
b/planetstack/tests/GetConfiguration.py
index
5aa0887
..
872cd14
100644
(file)
--- a/
planetstack/tests/GetConfiguration.py
+++ b/
planetstack/tests/GetConfiguration.py
@@
-169,7
+169,8
@@
def GetConfiguration(name):
'sites': sites,
'nodes': nodes}
-print GetConfiguration({"name": "smbaker-coblitz"})
+if __name__ == '__main__':
+ print GetConfiguration({"name": "smbaker-coblitz"})