Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-node
Commits
28ef96ba
Commit
28ef96ba
authored
12 years ago
by
Anael Beutot
Browse files
Options
Downloads
Patches
Plain Diff
Fix sto_vol tag when no volume is present
parent
702e86e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cloudcontrol/node/hypervisor/__init__.py
+2
-1
2 additions, 1 deletion
cloudcontrol/node/hypervisor/__init__.py
with
2 additions
and
1 deletion
cloudcontrol/node/hypervisor/__init__.py
+
2
−
1
View file @
28ef96ba
...
...
@@ -103,7 +103,8 @@ class Handler(HostHandler):
Tag
(
'
sto%s_used
'
%
name
,
lambda
sto
:
sto
.
capacity
-
sto
.
available
,
5
,
5
,
storage
),
Tag
(
'
sto%s_type
'
%
name
,
lambda
sto
:
sto
.
type
,
5
,
5
,
storage
),
Tag
(
'
sto%s_vol
'
%
name
,
lambda
sto
:
'
'
.
join
(
sto
.
volumes
),
Tag
(
'
sto%s_vol
'
%
name
,
lambda
sto
:
'
'
.
join
(
sto
.
volumes
)
if
sto
.
volumes
else
None
,
5
,
5
,
storage
),
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment