Skip to content

Commit

Permalink
Merge pull request #62 from djberg96/instance_location
Browse files Browse the repository at this point in the history
[REFACTOR] Set instance location to region location instead of using uid value
(cherry picked from commit 04e380b)

https://bugzilla.redhat.com/show_bug.cgi?id=1488967
  • Loading branch information
Bronagh Sorota authored and simaishi committed Sep 12, 2017
1 parent 8154df6 commit b75fb9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -224,7 +224,7 @@ def parse_instance(instance)
:raw_power_state => power_status(instance),
:operating_system => process_os(instance),
:flavor => series,
:location => uid,
:location => instance.location,
:orchestration_stack => @data_index.fetch_path(:orchestration_stacks, @resource_to_stack[uid]),
:availability_zone => @data_index.fetch_path(:availability_zones, 'default'),
:hardware => {
Expand Down
Expand Up @@ -403,7 +403,7 @@ def assert_specific_vm_powered_on
:uid_ems => vm_resource_id,
:vendor => "azure",
:power_state => "on",
:location => vm_resource_id,
:location => "eastus",
:tools_status => nil,
:boot_time => nil,
:standby_action => nil,
Expand Down Expand Up @@ -539,7 +539,7 @@ def assert_specific_vm_powered_off_attributes(v)
:uid_ems => vm_resource_id,
:vendor => "azure",
:power_state => "off",
:location => vm_resource_id,
:location => "eastus",
:tools_status => nil,
:boot_time => nil,
:standby_action => nil,
Expand Down

0 comments on commit b75fb9b

Please sign in to comment.