summaryrefslogtreecommitdiff
path: root/openstack_dashboard/api
diff options
context:
space:
mode:
authorLadislav Smola <lsmola@redhat.com>2013-07-26 15:12:07 +0200
committerTomas Sedovic <tomas@sedovic.cz>2013-08-01 16:18:57 +0200
commit5fdd46427671753abd17a323a12d997b09726e05 (patch)
tree3dbd66bc1daaac69984a596052c5a500866f475f /openstack_dashboard/api
parent7be5c16f3d7a5f3f1eaaccc20a72ded8871238cb (diff)
downloadtuskar-ui-5fdd46427671753abd17a323a12d997b09726e05.tar.gz
Polling of status on rack detail
- added polling of status when rack detai lis in provisioning state - added gif loader - after it changes state from provisioning, the page will be reloaded - it can be fully tested after provisioning will be working Change-Id: Icbf89dca7ab57c259b237c4884efa8fb565eaa71
Diffstat (limited to 'openstack_dashboard/api')
-rw-r--r--openstack_dashboard/api/tuskar.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/openstack_dashboard/api/tuskar.py b/openstack_dashboard/api/tuskar.py
index c49609ee..da2cef0e 100644
--- a/openstack_dashboard/api/tuskar.py
+++ b/openstack_dashboard/api/tuskar.py
@@ -501,7 +501,11 @@ class Rack(StringIdAPIResourceWrapper):
return 100 - self.total_instances
def is_provisioned(self):
- return (self.state == 'provisioned')
+ return (self.state == 'active') or (self.state == 'error')
+
+ @property
+ def is_provisioning(self):
+ return (self.state == 'provisioning')
@classmethod
def provision(cls, request, rack_id):