openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #10072
Re: Endpoints problems
So why would the preferred method be the one that you have to do all sort of magic stuff to protect from bash extrapolation.. and also given that the code converts those to %(tenant_id).. why wouldn't the "%(" way be the preferred way?
Sounds like an artifact of the CLI being a second class use case..
--shep
On Apr 13, 2012, at 8:48 AM, Dean Troyer wrote:
> On Fri, Apr 13, 2012 at 8:28 AM, Guilherme Birk <guibirk@xxxxxxxxxxx> wrote:
>> keystone --token ADMIN --endpoint http://192.168.100.142:35357/v2.0
>> endpoint-create --region RegionOne
>> --service_id=1fd7b5f1add74aa4b6efc514fd153e72
>> --publicurl="http://192.168.100.142:8774/v2/$(tenant_id)s"
>> --adminurl="http://192.168.100.142:8774/v2/$(tenant_id)s"
>> --internalurl="http://192.168.100.142:8774/v2/$(tenant_id)s"
>>
>> But I'm getting a "tenant_id: command not found". When I list the endpoints
>> all my url's are like "http://192.168.100.142:8774/v2/s" for the created
>> endpoint.
>> Am I doing something wrong ?
>
> You need to escape the '$'s in your URLs or change the double quotes
> around them to single quotes. The shell sees the $(tenant_id) and
> attempts to execute a command called tenant_id.
>
> dt
>
> --
>
> Dean Troyer
> dtroyer@xxxxxxxxx
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
References