We typically discourage querying cloud specific utils in charms as it makes
them far less portable. It would be much more preferred to have this
patched in Juju.

On Wed Nov 26 2014 at 10:10:35 PM Andrew Wilkins <
andrew.wilk...@canonical.com> wrote:

> Hi Mike,
>
> Sounds like you're hitting
> https://bugs.launchpad.net/juju-core/+bug/1308374.
> There's a workaround described in the bug description: use an external DNS.
>
> Alternatively, you could (temporarily) do something EC2-specific in your
> charm:
>     $(ec2metadata --public-ipv4)
>
> Cheers,
> Andrew
>
>
> On Thu, Nov 27, 2014 at 1:02 AM, Mike Schwartz <m...@gluu.org> wrote:
>
>> Juju gurus,
>>
>> $(unit-get public-address) from within a hook is failing for us right now
>> on AWS. It returns the private address instead. I heard a fix will be
>> available in juju v1.21. Is there any way workaround, as we really want to
>> ship the Gluu Server charm ASAP.
>>
>> thx,
>>
>> Mike
>>
>>
>> -------------------------------------
>> Michael Schwartz
>> Gluu
>> Founder / CEO
>> m...@gluu.org
>>
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/juju
>>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to