lib/cf/cli/app/push/interactions.rb in cf-5.2.0 vs lib/cf/cli/app/push/interactions.rb in cf-5.2.1.rc2
- old
+ new
@@ -3,11 +3,15 @@
def ask_name
ask("Name")
end
def ask_host(name)
- ask "Subdomain", :choices => [name, "none"],
- :default => name,
+ # Use .dup here because when we pass app.name deep into interactive,
+ # it needs an unfrozen String because the cli allows people to change
+ # this value.
+ host = name.dup
+ ask "Subdomain", :choices => [host, "none"],
+ :default => host,
:allow_other => true
end
def ask_domain(app)
choices = app.space.domains