lib/chef/knife/topo_create.rb in knife-topo-0.0.9 vs lib/chef/knife/topo_create.rb in knife-topo-0.0.10

- old
+ new

@@ -82,12 +82,12 @@ # Add topology item to the data bag on the server begin topo.create rescue Net::HTTPServerException => e raise unless e.to_s =~ /^409/ - msg = "Topology already exists - do you want to update it"; - msg + " to version " + topo['version'] if topo['version'] + msg = "Topology already exists - do you want to update it" + msg = msg + " to version " + topo['version'] if topo['version'] ui.confirm(msg, true, false) topo.save end # make sure env and cookbooks are in place @@ -107,11 +107,12 @@ # if bootstrap is specified, run the bootstrap command run_cmd(Chef::Knife::TopoBootstrap, @topo_bootstrap_args) if config[:bootstrap] else ui.info "No nodes found for topology #{display_name(topo_hash)}" end - + ui.info("Topology #{display_name(topo_hash)} created") + ui.info("Build information: " + topo_hash['buildstamp']) if topo_hash['buildstamp'] end