ops_manager_ui_drivers 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7009bd0e4f01c5a5c389fdb89e911ed190924a49
4
- data.tar.gz: eebd3bb0186792fc5045a4b4de53f80489626a78
3
+ metadata.gz: f271a75ae031945c71b67c00e151877698ac3e10
4
+ data.tar.gz: 6575e6940cac327bc56a56d677a8dc8e6f25bfee
5
5
  SHA512:
6
- metadata.gz: b8694e1e94f1da768092b8e2e60295fbf268a1bf1f7e9dbacbefbb699a043ae52aafaae9d0267e9e13cc76fa70231487bd0f268f4281afee7452b889a9a045bc
7
- data.tar.gz: 47f0a687abaff67b9498d0e1d749369cb21f71d083f8db777f0350c0b1e517d85c3141ae7a407c8215f9829679f4b1edff90dce1a05316926c4a18b002ea92f2
6
+ metadata.gz: ccdcd09e4e0a9cd15415e1216bc62fd3be7b0da9f6708f697e34614dba961e41028cddfea2b6b12aef912c6ad7555663a59f303a22ea12a5808d80db275aa75c
7
+ data.tar.gz: 9cef3c5a9c5c6ff41ef8617589f8f7dbf98e0e581c566d22b890b9b6873252c30304393c7df43baad6308f3b8ed0bb25fc90f9151978a26fde586a5c3bd2900f
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.1.6'
2
+ VERSION = '2.1.7'
3
3
  end
@@ -50,22 +50,26 @@ module OpsManagerUiDrivers
50
50
 
51
51
  def job_azs_and_network_mapping_for(product_name)
52
52
  Version17::JobAzAndNetworkMappingHelper.new(
53
- browser: browser,
53
+ browser: browser,
54
54
  product_name: product_name,
55
55
  )
56
56
  end
57
57
 
58
58
  def assign_azs_and_network_for_product(product_name:, zones:, network:)
59
59
  zones_present = zones && zones.first
60
+
61
+ singleton_az = zones_present ? (zones[0]['iaas_identifier'] || zones[0]['name']) : nil
62
+ availability_zones = zones_present ? zones.map{|zone| (zone['iaas_identifier'] || zone['name']) } : nil
63
+
60
64
  job_azs_and_network_mapping_for(product_name).assign_azs_and_network(
61
- singleton_availability_zone: zones_present ? zones[0]['iaas_identifier'] : nil,
62
- availability_zones: zones_present ? zones.map { |z| z['iaas_identifier'] } : [],
63
- network: network
65
+ singleton_availability_zone: singleton_az,
66
+ availability_zones: availability_zones,
67
+ network: network,
64
68
  )
65
69
  end
66
70
 
67
71
  def current_time
68
- uri = URI(Capybara.app_host)
72
+ uri = URI(Capybara.app_host)
69
73
  uri.path = '/'
70
74
  Net::HTTP.start(uri.hostname, uri.port, use_ssl: (uri.scheme == 'https'), verify_mode: OpenSSL::SSL::VERIFY_NONE) do |http|
71
75
  response = http.request(Net::HTTP::Get.new(uri))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_ui_drivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.