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
ffba413a
Commit
ffba413a
authored
7 years ago
by
Antoine Millet
Browse files
Options
Downloads
Patches
Plain Diff
Added sto*_shared tag
parent
cf89ed48
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/lib.py
+1
-0
1 addition, 0 deletions
cloudcontrol/node/hypervisor/lib.py
with
1 addition
and
0 deletions
cloudcontrol/node/hypervisor/lib.py
+
1
−
0
View file @
ffba413a
...
...
@@ -343,6 +343,7 @@ class StorageIndex(object):
Tag
(
'
sto%s_ratio
'
%
s
.
name
,
partial
(
lambda
x
:
'
%0.2f
'
%
(
1
-
float
(
x
.
available
)
/
x
.
capacity
)
if
x
.
available
is
not
None
and
x
.
capacity
is
not
None
else
None
,
s
),
5
,
5
),
Tag
(
'
sto%s_shared
'
%
s
.
name
,
partial
(
lambda
x
:
{
True
:
'
yes
'
,
False
:
'
no
'
}[
s
.
is_shared
],
s
)),
))
self
.
update_path_index
()
...
...
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