Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
b9ba9b16
authored
Feb 08, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: remove automatic active_since setting
parent
aff6d0b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
one/models.py
+0
-3
No files found.
one/models.py
View file @
b9ba9b16
...
@@ -330,9 +330,6 @@ class Instance(models.Model):
...
@@ -330,9 +330,6 @@ class Instance(models.Model):
x
=
parseString
(
out
)
x
=
parseString
(
out
)
self
.
vnet_ip
=
x
.
getElementsByTagName
(
"IP"
)[
0
]
.
childNodes
[
0
]
.
nodeValue
.
split
(
'.'
)[
3
]
self
.
vnet_ip
=
x
.
getElementsByTagName
(
"IP"
)[
0
]
.
childNodes
[
0
]
.
nodeValue
.
split
(
'.'
)[
3
]
state
=
x
.
getElementsByTagName
(
"STATE"
)[
0
]
.
childNodes
[
0
]
.
nodeValue
state
=
x
.
getElementsByTagName
(
"STATE"
)[
0
]
.
childNodes
[
0
]
.
nodeValue
if
self
.
state
==
'PENDING'
and
state
==
'ACTIVE'
:
from
datetime
import
datetime
self
.
active_since
=
datetime
.
now
()
self
.
state
=
state
self
.
state
=
state
except
:
except
:
self
.
state
=
'UNKNOWN'
self
.
state
=
'UNKNOWN'
...
...
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