lib/openstack/compute/server.rb in openstack-3.3.15 vs lib/openstack/compute/server.rb in openstack-3.3.16
- old
+ new
@@ -7,10 +7,11 @@
attr_reader :id
attr_reader :name
attr_reader :libvirt_id
attr_reader :fault
attr_reader :status
+ attr_reader :state
attr_reader :progress
attr_reader :accessipv4
attr_reader :accessipv6
attr_reader :addresses
attr_reader :hostId
@@ -60,9 +61,10 @@
@id = data["id"] || data["uuid"]
@name = data["name"]
@libvirt_id = data["OS-EXT-SRV-ATTR:instance_name"]
@fault = data["fault"]
@status = data["status"]
+ @state = data["OS-EXT-STS:task_state"]
@progress = data["progress"]
@addresses = get_addresses(data["addresses"])
@metadata = OpenStack::Compute::Metadata.new(@compute, path, data["metadata"])
@hostId = data["hostId"]
@image = data["image"] || data["imageId"]