++ sed -e s/,heat-cfn,cloudformation//g ++ grep ',heat-cfn,cloudformation$' ++ openstack service list -f csv --quote none + OS_SERVICE_ID=f1b5448825204541bed948bc31186c86 ++ 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 f1b5448825204541bed948bc31186c86 internal http://heat-cfn.openstack.svc.cluster.local:8000/v1 + OS_ENDPOINT_ID=8ada7c4e6d1e4c29a89d153b55fd0a3f + openstack endpoint show 8ada7c4e6d1e4c29a89d153b55fd0a3f +--------------+-----------------------------------------------------+ | Field | Value | +--------------+-----------------------------------------------------+ | enabled | True | | id | 8ada7c4e6d1e4c29a89d153b55fd0a3f | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | f1b5448825204541bed948bc31186c86 | | service_name | heat-cfn | | service_type | cloudformation | | url | http://heat-cfn.openstack.svc.cluster.local:8000/v1 | +--------------+-----------------------------------------------------+