Remove 'OS_PROJECT_ID' from Environment Variables

This P.S. is meant to remove the need for project_ID as
it is sufficient to provide the project_name for UCP
components to make OpenStack API calls

UCP will be using the 'service' project

Change-Id: Ife0d2c4101f3555de05f95826bdf3bebb53cbd99
This commit is contained in:
Anthony Lin 2017-08-22 16:31:16 +00:00
parent b66d39e468
commit 779b3aa063
1 changed files with 4 additions and 4 deletions

View File

@ -48,10 +48,10 @@ class OpenStackOperator(BaseOperator):
config = configparser.ConfigParser()
config.read(self.shipyard_conf)
# Construct Envrionment variables
for attr in ('OS_AUTH_URL', 'OS_PROJECT_ID', 'OS_PROJECT_NAME',
'OS_USER_DOMAIN_NAME', 'OS_USERNAME', 'OS_PASSWORD',
'OS_REGION_NAME', 'OS_IDENTITY_API_VERSION'):
# Construct Envrionment Variables
for attr in ('OS_AUTH_URL', 'OS_PROJECT_NAME', 'OS_USER_DOMAIN_NAME',
'OS_USERNAME', 'OS_PASSWORD', 'OS_REGION_NAME',
'OS_IDENTITY_API_VERSION'):
os.environ[attr] = config.get('keystone', attr)
# Execute the OpenStack CLI Command