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
348c390e
authored
Feb 22, 2018
by
Szabolcs Gelencser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logging of sync instance operation call, rr eadable_state
parent
a1d135bf
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
.idea/workspace.xml
+0
-0
circle/common/operations.py
+1
-1
circle/dashboard/views/vm.py
+1
-1
circle/vm/models/instance.py
+1
-1
No files found.
.idea/workspace.xml
View file @
348c390e
This diff is collapsed.
Click to expand it.
circle/common/operations.py
View file @
348c390e
...
...
@@ -111,10 +111,10 @@ class Operation(object):
* user: The User invoking the operation. If this argument is not
present, it'll be provided with a default value of None.
"""
allargs
,
auxargs
=
self
.
__prelude
(
request
,
kwargs
)
logger
.
info
(
"
%
s called (synchronously) on
%
s with the following "
"parameters:
%
r"
,
self
.
__class__
.
__name__
,
self
.
subject
,
kwargs
)
allargs
,
auxargs
=
self
.
__prelude
(
request
,
kwargs
)
return
self
.
_exec_op
(
request
,
allargs
,
auxargs
)
def
check_precond
(
self
):
...
...
circle/dashboard/views/vm.py
View file @
348c390e
...
...
@@ -1256,7 +1256,7 @@ def vm_activity(request, pk):
# activities = activities[:10]
response
[
'connect_uri'
]
=
instance
.
get_connect_uri
()
response
[
'human_readable_status'
]
=
'#TODO'
#
instance.get_status_display()
response
[
'human_readable_status'
]
=
instance
.
get_status_display
()
response
[
'status'
]
=
instance
.
status
response
[
'icon'
]
=
instance
.
get_status_icon
()
latest
=
instance
.
get_latest_activity_in_progress
()
...
...
circle/vm/models/instance.py
View file @
348c390e
...
...
@@ -819,7 +819,7 @@ class Instance(OperatedMixin, TimeStampedModel):
def
get_status_display
(
self
):
if
self
.
status
in
self
.
STATUS
:
return
self
.
STATUS
[
self
.
status
]
return
unicode
(
self
.
STATUS
[
self
.
status
])
return
self
.
status
def
get_activities
(
self
,
user
=
None
):
...
...
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