Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5adcd0d9
authored
Mar 23, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix node.enable()
parent
5fa8133f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
circle/vm/models/node.py
+2
-4
No files found.
circle/vm/models/node.py
View file @
5adcd0d9
...
@@ -153,8 +153,7 @@ class Node(TimeStampedModel):
...
@@ -153,8 +153,7 @@ class Node(TimeStampedModel):
with
node_activity
(
code_suffix
=
'enable'
,
node
=
self
,
user
=
user
):
with
node_activity
(
code_suffix
=
'enable'
,
node
=
self
,
user
=
user
):
self
.
enabled
=
True
self
.
enabled
=
True
self
.
save
()
self
.
save
()
self
.
get_num_cores
(
invalidate_cache
=
True
)
self
.
get_info
(
invalidate_cache
=
True
)
self
.
get_ram_size
(
invalidate_cache
=
True
)
@property
@property
@node_available
@node_available
...
@@ -197,8 +196,7 @@ class Node(TimeStampedModel):
...
@@ -197,8 +196,7 @@ class Node(TimeStampedModel):
act
.
succeeded
=
True
act
.
succeeded
=
True
act
.
save
()
act
.
save
()
logger
.
info
(
"Node
%
s is ONLINE."
%
self
.
name
)
logger
.
info
(
"Node
%
s is ONLINE."
%
self
.
name
)
self
.
get_num_cores
(
invalidate_cache
=
True
)
self
.
get_info
(
invalidate_cache
=
True
)
self
.
get_ram_size
(
invalidate_cache
=
True
)
def
node_offline
(
self
):
def
node_offline
(
self
):
"""Called when a node disappears.
"""Called when a node disappears.
...
...
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