Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
80512ca6
authored
Sep 18, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fix coding error
parent
5c42499f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
circle/vm/models/node.py
+4
-4
No files found.
circle/vm/models/node.py
View file @
80512ca6
...
...
@@ -364,11 +364,11 @@ class Node(OperatedMixin, TimeStampedModel):
self
.
instance_set
.
get
(
id
=
i
[
'id'
])
.
vm_state_changed
(
d
)
del
domains
[
i
[
'id'
]]
for
i
in
domains
.
value
s
():
for
i
d
,
state
in
domains
.
iteritem
s
():
from
.instance
import
Instance
logger
.
info
(
'Node
%
s update: domain
%
s in libvirt but not in db.'
,
self
,
i
[
'id'
]
)
Instance
.
objects
.
get
(
id
=
i
[
'id'
])
.
vm_state_changed
(
i
[
'state'
]
,
self
)
logger
.
error
(
'Node
%
s update: domain
%
s in libvirt but not in db.'
,
self
,
id
)
Instance
.
objects
.
get
(
id
=
i
d
)
.
vm_state_changed
(
state
,
self
)
@classmethod
def
get_state_count
(
cls
,
online
,
enabled
):
...
...
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