Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
slapos.toolbox
Commits
0a9ccd35
Commit
0a9ccd35
authored
Dec 13, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed state variable
parent
62238a8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
slapos/agent/agent.py
slapos/agent/agent.py
+6
-6
No files found.
slapos/agent/agent.py
View file @
0a9ccd35
...
@@ -295,18 +295,18 @@ class SoftwareReleaseTester(RPCRetry):
...
@@ -295,18 +295,18 @@ class SoftwareReleaseTester(RPCRetry):
deadline
=
self
.
deadline
deadline
=
self
.
deadline
if
deadline
<
now
and
deadline
is
not
None
:
if
deadline
<
now
and
deadline
is
not
None
:
raise
TestTimeout
(
self
.
state
)
raise
TestTimeout
(
self
.
state
)
_
,
_
,
state
,
software_state
,
instance_state
=
self
.
transition_dict
[
_
,
_
,
next_
state
,
software_state
,
instance_state
=
self
.
transition_dict
[
self
.
state
]
self
.
state
]
if
(
software_state
is
None
or
if
(
software_state
is
None
or
software_state
==
self
.
_getSoftwareState
())
and
(
software_state
==
self
.
_getSoftwareState
())
and
(
instance_state
is
None
or
instance_state
is
None
or
instance_state
==
self
.
_getInstanceState
()):
instance_state
==
self
.
_getInstanceState
()):
if
state
is
None
:
if
next_
state
is
None
:
return
None
return
None
self
.
_logger
.
debug
(
'Going to state %i (%r, %r)'
,
state
,
self
.
_logger
.
debug
(
'Going to state %i (%r, %r)'
,
next_
state
,
software_state
,
instance_state
)
software_state
,
instance_state
)
self
.
state
=
state
self
.
state
=
next_
state
stepfunc
,
delay
,
_
,
_
,
_
=
self
.
transition_dict
[
state
]
stepfunc
,
delay
,
_
,
_
,
_
=
self
.
transition_dict
[
next_
state
]
self
.
deadline
=
now
+
delay
self
.
deadline
=
now
+
delay
stepfunc
(
self
)
stepfunc
(
self
)
return
self
.
deadline
return
self
.
deadline
...
@@ -422,7 +422,7 @@ def main():
...
@@ -422,7 +422,7 @@ def main():
isinstance
(
section_entry_dict
[
key
],
unicode
):
isinstance
(
section_entry_dict
[
key
],
unicode
):
section_entry_dict
[
key
]
=
json
.
loads
(
section_entry_dict
[
key
]
=
json
.
loads
(
section_entry_dict
[
key
])
section_entry_dict
[
key
])
except
Exception
,
e
:
except
Exception
as
exc
:
logger
.
error
(
"Fail to load %s on %s"
%
(
key
,
section_entry_dict
))
logger
.
error
(
"Fail to load %s on %s"
%
(
key
,
section_entry_dict
))
raise
raise
if
'key'
in
section_entry_dict
:
if
'key'
in
section_entry_dict
:
...
...
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