aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/test.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-26 21:39:23 -0700
committerelijah <elijah@riseup.net>2013-06-26 21:39:23 -0700
commite0763033e497fdb7956aa62534b5f8bee0f83a12 (patch)
treefc401d97f2180eded26142d541f5ffe12df15ec0 /lib/leap_cli/commands/test.rb
parente202826340c3293d4cb2a8900cbbd628bc1b9289 (diff)
downloadleap_cli-e0763033e497fdb7956aa62534b5f8bee0f83a12.tar.gz
leap_cli-e0763033e497fdb7956aa62534b5f8bee0f83a12.tar.bz2
added command `leap compile zone`
Diffstat (limited to 'lib/leap_cli/commands/test.rb')
-rw-r--r--lib/leap_cli/commands/test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb
index 8fe6e11..c240a70 100644
--- a/lib/leap_cli/commands/test.rb
+++ b/lib/leap_cli/commands/test.rb
@@ -28,8 +28,7 @@ module LeapCli; module Commands
assert_config! 'provider.ca.client_certificates.unlimited_prefix'
assert_config! 'provider.ca.client_certificates.limited_prefix'
template = read_file! Path.find_file(:test_client_openvpn_template)
- environments = [nil] + manager.tags.collect {|name, tag| tag['environment']}.compact
- environments.each do |env|
+ manager.environments.each do |env|
vpn_nodes = manager.nodes[:environment => env][:services => 'openvpn']['openvpn.allow_limited' => true]
if vpn_nodes.any?
generate_test_client_cert(provider.ca.client_certificates.limited_prefix) do |key, cert|