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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
baf0630e
Commit
baf0630e
authored
Nov 27, 2014
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! slapos.slap: fix __getattr__ of product collection.
parent
10e1d89c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
slapos/client.py
slapos/client.py
+1
-1
slapos/slap/interface/slap.py
slapos/slap/interface/slap.py
+0
-5
No files found.
slapos/client.py
View file @
baf0630e
...
...
@@ -117,7 +117,7 @@ def _getSoftwareReleaseFromSoftwareString(logger, software_string, product):
return
software_string
try
:
return
product
.
get
(
software_string
[
len
(
SOFTWARE_PRODUCT_NAMESPACE
):])
return
product
.
__getattr__
(
software_string
[
len
(
SOFTWARE_PRODUCT_NAMESPACE
):])
except
AttributeError
as
e
:
logger
.
error
(
'Error: %s Exiting now.'
%
e
.
message
)
sys
.
exit
(
1
)
...
...
slapos/slap/interface/slap.py
View file @
baf0630e
...
...
@@ -174,11 +174,6 @@ class ISoftwareProductCollection(Interface):
Example: product.kvm will have the value of the latest Software
Release URL of KVM.
"""
def
get
(
software_product
):
"""
Return the best Software Release URL of the Software Product
software_product, by querying SlapOS Master.
"""
class
ISoftwareInstance
(
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