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