Преглед изворни кода

Update docs to reflect instance state change from TERMINATED to DELETED.

Enis Afgan пре 8 година
родитељ
комит
089166f1b1
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 1 1
      docs/getting_started.rst
  2. 3 3
      docs/topics/object_lifecycles.rst

+ 1 - 1
docs/getting_started.rst

@@ -179,7 +179,7 @@ To wrap things up, let's clean up all the resources we have created
 
 
     inst.terminate()
     inst.terminate()
     from cloudbridge.cloud.interfaces import InstanceState
     from cloudbridge.cloud.interfaces import InstanceState
-    inst.wait_for([InstanceState.TERMINATED, InstanceState.UNKNOWN],
+    inst.wait_for([InstanceState.DELETED, InstanceState.UNKNOWN],
                    terminal_states=[InstanceState.ERROR])  # Blocking call
                    terminal_states=[InstanceState.ERROR])  # Blocking call
     fip.delete()
     fip.delete()
     fw.delete()
     fw.delete()

+ 3 - 3
docs/topics/object_lifecycles.rst

@@ -31,14 +31,14 @@ follows:
 
 
     self.wait_for(
     self.wait_for(
         [InstanceState.RUNNING],
         [InstanceState.RUNNING],
-        terminal_states=[InstanceState.TERMINATED, InstanceState.ERROR],
+        terminal_states=[InstanceState.DELETED, InstanceState.ERROR],
         timeout=timeout,
         timeout=timeout,
         interval=interval)
         interval=interval)
 
 
 This would cause the wait_for method to repeatedly call refresh() till the
 This would cause the wait_for method to repeatedly call refresh() till the
 object's state reaches RUNNING. It will raise a :class:`WaitStateException`
 object's state reaches RUNNING. It will raise a :class:`WaitStateException`
 if the timeout expires, or the object reaches a terminal state, such as
 if the timeout expires, or the object reaches a terminal state, such as
-TERMINATED or ERROR, in which case it is no longer reasonable to wait for the
+DELETED or ERROR, in which case it is no longer reasonable to wait for the
 object to reach a running state.
 object to reach a running state.
 
 
 Informational states and actionable states
 Informational states and actionable states
@@ -76,7 +76,7 @@ CONFIGURING           informational   Instance is being reconfigured in some
                                       way and may not be usable.
                                       way and may not be usable.
 RUNNING               actionable      Instance is running.
 RUNNING               actionable      Instance is running.
 REBOOTING             informational   Instance is rebooting.
 REBOOTING             informational   Instance is rebooting.
-TERMINATED            actionable      Instance is terminated. No further
+DELETED               actionable      Instance is deleted. No further
                                       operations possible.
                                       operations possible.
 STOPPED               actionable      Instance is stopped. Instance can be
 STOPPED               actionable      Instance is stopped. Instance can be
                                       resumed.
                                       resumed.