git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
huge cleanup for removing mutables used as default
[sfa.git]
/
sfa
/
rspecs
/
versions
/
ofeliav1.py
diff --git
a/sfa/rspecs/versions/ofeliav1.py
b/sfa/rspecs/versions/ofeliav1.py
index
cd206ff
..
d074694
100755
(executable)
--- a/
sfa/rspecs/versions/ofeliav1.py
+++ b/
sfa/rspecs/versions/ofeliav1.py
@@
-86,7
+86,8
@@
class Ofelia(RSpecVersion):
# Slivers
# Slivers
- def add_slivers(self, hostnames, attributes=[], sliver_urn=None, append=False):
+ def add_slivers(self, hostnames, attributes=None, sliver_urn=None, append=False):
+ if attributes is None: attributes=[]
# add slice name to network tag
network_tags = self.xml.xpath('//network')
if network_tags:
# add slice name to network tag
network_tags = self.xml.xpath('//network')
if network_tags: