Hi there,
Can you please provide a minimal Vagrantfile that demonstrates the failure
you are encountering?
Thanks!
On Thursday, August 2, 2018 at 6:12:00 PM UTC-7, Joshua Kugler wrote:
>
> 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/1f4a47e8-c0bd-4819-ac00-025a520f5d70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.