manageiq-appliance_console 1.2.1 → 1.2.2

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
  SHA256:
3
- metadata.gz: d9f93f5b9de6e6b86e76565ab99f556afe50caa98b49366c7e9fda3283849efd
4
- data.tar.gz: 6d5a79b894f209fdfeafc3c134877233aa2813e3d604801e4461c9d8c4c8e61d
3
+ metadata.gz: 5b7f2830c4f3fa4bb98ce5ee2dda84982ed187c01239694b833148ecd006a7dc
4
+ data.tar.gz: 98b8f63c0bca33abcb12c8a00f0c78a2cc45707b71f13072cd4374b8268b84a1
5
5
  SHA512:
6
- metadata.gz: fd82cef208c94bfb20c29185b5d74b7d77417f263fab5d9186903711775618ff9c4107840d35ef7e84d211a7e9091fd6e2608874848eafd67c04a2273c473933
7
- data.tar.gz: 3c18fc8bf709765fc784f4499715241a71fd50fde1405a5a2215446ea21d66bfe2928659326f4868370c3c837e980159d9df906e8a04d9ea6f5af09a8dc2fb23
6
+ metadata.gz: a8edfcc0982c851a3b82a41b3c4da94c5dd52825463c112a9a9a2570f85c1235d70b3d7034327bd9216e8ccda17d169acd236c5a5bc886b2368a01a96b16671f
7
+ data.tar.gz: 25a0ba685ab16923c8b0c5fc6a4215a1ab2c416d117cf8e834b8e79484f4924eccd3da1540e902f2261c4162f2ad62c1b75394e09dc6aba1ffa0745ed06cfca8
@@ -172,8 +172,8 @@ To modify the configuration, use a web browser to access the management page.
172
172
  new_ip = ask_for_ipv4("IP Address", ip)
173
173
  new_mask = ask_for_ipv4("Netmask", mask)
174
174
  new_gw = ask_for_ipv4("Gateway", gw)
175
- new_dns1 = ask_for_ipv4("Primary DNS", dns1)
176
- new_dns2 = ask_for_ipv4_or_none("Secondary DNS (Enter 'none' for no value)", dns2)
175
+ new_dns1 = ask_for_ip("Primary DNS", dns1)
176
+ new_dns2 = ask_for_ip_or_none("Secondary DNS (Enter 'none' for no value)", dns2)
177
177
 
178
178
  new_search_order = ask_for_many("domain", "Domain search order", order)
179
179
 
@@ -74,6 +74,10 @@ module ApplianceConsole
74
74
  just_ask(prompt, default, validate, error_text, &block)
75
75
  end
76
76
 
77
+ def ask_for_ip_or_none(prompt, default = nil)
78
+ ask_for_ip(prompt, default, Regexp.union(NONE_REGEXP, IP_REGEXP)).gsub(NONE_REGEXP, "")
79
+ end
80
+
77
81
  def ask_for_ipv4(prompt, default)
78
82
  ask_for_ip(prompt, default, IPV4_REGEXP)
79
83
  end
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '1.2.1'.freeze
3
+ VERSION = '1.2.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-19 00:00:00.000000000 Z
11
+ date: 2017-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord