Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.core
Commits
1f7a3777
Commit
1f7a3777
authored
Dec 14, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface: fix supply interface regarding destruction
parent
19f9102f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
slapos/slap/interface/slap.py
slapos/slap/interface/slap.py
+6
-2
No files found.
slapos/slap/interface/slap.py
View file @
1f7a3777
...
...
@@ -457,15 +457,19 @@ class ISupply(Interface):
a given client is ready to supply.
"""
def
supply
(
software_release
,
computer_guid
=
None
):
def
supply
(
software_release
,
computer_guid
=
None
,
state
=
"available"
):
"""
Tell that given client is ready to supply given sofware release
Request installation or deletion of a software relase.
To destroy a software, supply it with state "destroyed".
software_release -- uri of the software release
which has to be instanciated
computer_guid -- the identifier of the computer inside the slapgrid
server.
state -- the state of the software, can be "available" or "destroyed".
"""
class
slap
(
Interface
):
...
...
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