git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a few more calls to list() for py3
[nepi.git]
/
src
/
nepi
/
util
/
sfaapi.py
diff --git
a/src/nepi/util/sfaapi.py
b/src/nepi/util/sfaapi.py
index
d3a56e7
..
f460b7e
100644
(file)
--- a/
src/nepi/util/sfaapi.py
+++ b/
src/nepi/util/sfaapi.py
@@
-301,8
+301,7
@@
class SFAAPI(object):
slice_res = self.get_slice_resources(slicename)['resource']
if slice_res:
if len(slice_res[0]['services']) != 0:
slice_res = self.get_slice_resources(slicename)['resource']
if slice_res:
if len(slice_res[0]['services']) != 0:
- # 2to3 added list() and it is useful
- slice_res_hrn = list(self.get_resources_hrn(slice_res).values())
+ slice_res_hrn = self.get_resources_hrn(slice_res).values()
if self._compare_lists(slice_res_hrn, resources_hrn):
return True
else: return len(slice_res_hrn)
if self._compare_lists(slice_res_hrn, resources_hrn):
return True
else: return len(slice_res_hrn)