Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
f-interop-contributors
myslicelib
Commits
fb82f212
Commit
fb82f212
authored
Sep 26, 2017
by
Loic Baron
Browse files
Slice.addLease handle lease without testbed attribute
parent
fbcfd718
Changes
1
Hide whitespace changes
Inline
Side-by-side
myslicelib/model/slice.py
View file @
fb82f212
...
...
@@ -85,7 +85,8 @@ class Slice(Entity):
def
addLease
(
self
,
lease
):
self
.
appendAttribute
(
'leases'
,
lease
.
getAttributes
())
if
lease
.
getAttribute
(
'testbed'
)
not
in
self
.
getAttribute
(
'testbeds'
):
#self.addResources(list(set(lease.getAttribute('resources')) - set(self.getAttribute('resources'))))
if
lease
.
hasAttribute
(
'testbed'
)
and
lease
.
getAttribute
(
'testbed'
)
not
in
self
.
getAttribute
(
'testbeds'
):
self
.
appendAttribute
(
'testbeds'
,
lease
.
getAttribute
(
'testbed'
))
self
.
setAttribute
(
'run_am'
,
True
)
return
self
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment