projects
/
snf-occi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b76346
)
Fixed pyflakes error
author
John Giannelos
<johngiannelos@gmail.com>
Wed, 2 May 2012 11:01:23 +0000
(14:01 +0300)
committer
John Giannelos
<johngiannelos@gmail.com>
Wed, 2 May 2012 11:01:23 +0000
(14:01 +0300)
snfOCCI/compute.py
patch
|
blob
|
history
diff --git
a/snfOCCI/compute.py
b/snfOCCI/compute.py
index
5aee3f8
..
50d4223
100644
(file)
--- a/
snfOCCI/compute.py
+++ b/
snfOCCI/compute.py
@@
-1,11
+1,7
@@
from snfOCCI.config import SERVER_CONFIG
from snfOCCI.config import SERVER_CONFIG
-from kamaki.clients.compute import ComputeClient
-from kamaki.clients.cyclades import CycladesClient
-from kamaki.config import Config
-
from occi.backend import ActionBackend, KindBackend
from occi.backend import ActionBackend, KindBackend
-from occi.extensions.infrastructure import COMPUTE, START, STOP, SUSPEND, RESTART
+from occi.extensions.infrastructure import START, STOP, SUSPEND, RESTART
from occi.exceptions import HTTPError
from occi.exceptions import HTTPError
@@
-37,7
+33,6
@@
class ComputeBackend(MyBackend):
for mixin in entity.mixins:
if mixin.related[0].term == 'os_tpl':
for mixin in entity.mixins:
if mixin.related[0].term == 'os_tpl':
- image = mixin
image_id = mixin.attributes['occi.core.id']
if mixin.related[0].term == 'resource_tpl':
flavor = mixin
image_id = mixin.attributes['occi.core.id']
if mixin.related[0].term == 'resource_tpl':
flavor = mixin