git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
user's can't set/unset site in Login Details without the proper authorization
[plstackapi.git]
/
planetstack
/
tools
/
get_instance_name.py
diff --git
a/planetstack/tools/get_instance_name.py
b/planetstack/tools/get_instance_name.py
index
01fc841
..
d95f064
100644
(file)
--- a/
planetstack/tools/get_instance_name.py
+++ b/
planetstack/tools/get_instance_name.py
@@
-18,8
+18,6
@@
def get_slice_id(slice_name):
return r.json()[0]["id"]
def get_node_id(host_name):
-# r = requests.get(NODES_API + "?name=%s" % host_name, auth=opencloud_auth)
-# return r.json()[0]["id"]
r = requests.get(NODES_API)
nodes = r.json()
for node in nodes: