How does one get information from the config object in a Vagrant file. I
see this assignment: c.vm.hostname="blah" but if I try to use
#{c.vm.hostname} elsewhere in the Vagrant file (because I want to pass the
host name to a shell script in a trigger), I get an exception: "no
implicit conversion of Object into String." Or I just get
<Object:0x000000010127e780>. What is the best way to get a string from
that? Would really like to extract information from the configuration
object.
Somebody asked here, but no answer:
https://stackoverflow.com/questions/47778744/how-can-i-access-a-vagrant-config-object-as-a-string-variable-in-a-vagrantfile
Any ideas?
j
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/088893a5-e612-4931-9ca0-acad4a6c7395%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.