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
dc93bd6d
Commit
dc93bd6d
authored
12 years ago
by
Anael Beutot
Browse files
Options
Downloads
Patches
Plain Diff
Updated add_sub_object calls
Added the type in the method signature in cc-common.
parent
05475630
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cloudcontrol/node/hypervisor/__init__.py
+1
-1
1 addition, 1 deletion
cloudcontrol/node/hypervisor/__init__.py
cloudcontrol/node/hypervisor/kvm.py
+2
-1
2 additions, 1 deletion
cloudcontrol/node/hypervisor/kvm.py
with
3 additions
and
2 deletions
cloudcontrol/node/hypervisor/__init__.py
+
1
−
1
View file @
dc93bd6d
...
...
@@ -97,7 +97,7 @@ class Handler(HostHandler):
# register domains
for
dom
in
self
.
hypervisor
.
domains
.
itervalues
():
self
.
tag_db
.
add_sub_object
(
dom
.
name
,
dom
.
tags
.
itervalues
())
self
.
tag_db
.
add_sub_object
(
dom
.
name
,
dom
.
tags
.
itervalues
()
,
'
vm
'
)
# we must refresh those tags only when domains tags are registered to
# have the calculated values
...
...
This diff is collapsed.
Click to expand it.
cloudcontrol/node/hypervisor/kvm.py
+
2
−
1
View file @
dc93bd6d
...
...
@@ -99,7 +99,8 @@ class KVM(object):
vm
=
VirtualMachine
(
dom
,
self
)
logger
.
info
(
'
Created domain %s
'
,
vm
.
name
)
self
.
domains
[
vm
.
name
]
=
vm
self
.
handler
.
tag_db
.
add_sub_object
(
vm
.
name
,
vm
.
tags
.
itervalues
())
self
.
handler
.
tag_db
.
add_sub_object
(
vm
.
name
,
vm
.
tags
.
itervalues
(),
'
vm
'
)
self
.
update_domain_count
()
elif
event
==
'
Removed
'
:
vm_name
=
dom
.
name
()
...
...
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