lib/kontena/cli/stacks/common.rb in kontena-cli-1.2.0.pre2 vs lib/kontena/cli/stacks/common.rb in kontena-cli-1.2.0.pre3

- old
+ new

@@ -108,9 +108,14 @@ end def generate_volumes(yaml_volumes) return [] unless yaml_volumes yaml_volumes.map do |name, config| + if config['external'].is_a?(TrueClass) + config['external'] = name + elsif config['external']['name'] + config['external'] = config['external']['name'] + end config.merge('name' => name) end end def generate_services(yaml_services)