++ sed -e s/,heat-cfn,cloudformation//g ++ openstack service list -f csv --quote none ++ grep ',heat-cfn,cloudformation$' + OS_SERVICE_ID=9a26f141471d4b3f960ace76ceb25988 ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,heat-cfn,cloudformation,True,internal,' ++ awk -F , '{ print $1 }' + OS_ENDPOINT_ID= ++ echo ++ wc -w + '[' 0 -gt 1 ']' + [[ -n '' ]] + OS_ENDPOINT_UPDATE=True + [[ True == \T\r\u\e ]] ++ openstack endpoint create -f value -c id --region=RegionOne 9a26f141471d4b3f960ace76ceb25988 internal http://heat-cfn.openstack.svc.cluster.local:8000/v1 + OS_ENDPOINT_ID=bf2f0e59ac7744feb457b86825ab0d96 + openstack endpoint show bf2f0e59ac7744feb457b86825ab0d96 +--------------+-----------------------------------------------------+ | Field | Value | +--------------+-----------------------------------------------------+ | enabled | True | | id | bf2f0e59ac7744feb457b86825ab0d96 | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | 9a26f141471d4b3f960ace76ceb25988 | | url | http://heat-cfn.openstack.svc.cluster.local:8000/v1 | | service_name | heat-cfn | | service_type | cloudformation | +--------------+-----------------------------------------------------+