Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
7a33fd43
Commit
7a33fd43
authored
Jul 17, 2012
by
Christos Stavrakakis
Browse files
Fix error state of BackendNetwork
parent
b32362ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/logic/backend.py
View file @
7a33fd43
...
...
@@ -161,11 +161,10 @@ def process_network_status(back_network, etime, jobid, opcode, status, logmsg):
if
opcode
==
'OP_NETWORK_REMOVE'
:
back_network
.
deleted
=
True
if
status
in
(
'canceled'
,
'error'
):
if
status
in
(
'canceled'
,
'error'
)
and
opcode
==
'OP_NETWORK_CREATE'
:
utils
.
update_state
(
back_network
,
'ERROR'
)
if
(
status
==
'error'
and
opcode
==
'OP_NETWORK_REMOVE'
and
back_network
.
operstate
==
'ERROR'
):
if
(
status
==
'error'
and
opcode
==
'OP_NETWORK_REMOVE'
):
back_network
.
deleted
=
True
back_network
.
operstate
=
'DELETED'
...
...
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