aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-05-27 17:04:53 -0700
committerelijah <elijah@riseup.net>2013-05-27 17:04:53 -0700
commite8191d25a091eef1e81bc79c61e4867c81e19d0f (patch)
treece6c365d411c0eb7536f0410724c4dfcd1c79d15 /lib
parent6bfb4551e79d2e3dfe71d6209ce3bda4e85646fd (diff)
downloadleap_cli-e8191d25a091eef1e81bc79c61e4867c81e19d0f.tar.gz
leap_cli-e8191d25a091eef1e81bc79c61e4867c81e19d0f.tar.bz2
important! the order that a node specifies its services and tags is now important. the services/tags are applied IN THE ORDER specified.
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/manager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/config/manager.rb b/lib/leap_cli/config/manager.rb
index a88f7d0..714cd6a 100644
--- a/lib/leap_cli/config/manager.rb
+++ b/lib/leap_cli/config/manager.rb
@@ -251,7 +251,7 @@ module LeapCli
# inherit from services
if node['services']
- node['services'].to_a.sort.each do |node_service|
+ node['services'].to_a.each do |node_service|
service = @services[node_service]
if service.nil?
log 0, :error, 'in node "%s": the service "%s" does not exist.' % [node['name'], node_service]
@@ -267,7 +267,7 @@ module LeapCli
node['tags'] = (node['tags'] || []).to_a + ['local']
end
if node['tags']
- node['tags'].to_a.sort.each do |node_tag|
+ node['tags'].to_a.each do |node_tag|
tag = @tags[node_tag]
if tag.nil?
log 0, :error, 'in node "%s": the tag "%s" does not exist.' % [node['name'], node_tag]