Skip to content

Commit

Permalink
small usability improvement to create-test-customer script (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
blentz committed Jan 11, 2019
1 parent 5b33d65 commit 6fa4539
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/create_test_customer.py
Expand Up @@ -79,6 +79,10 @@ def create_provider_api(self):
providers.append(self.customer.get('providers').get('ocp_provider'))

for provider in providers:
if not provider:
continue

print(f'\nAdding: {provider}')
data = {
'name': provider.get('provider_name'),
'type': provider.get('provider_type'),
Expand All @@ -95,7 +99,7 @@ def create_provider_api(self):
headers=self.get_headers(self.auth_token),
json=data
)
print(response.text)
print(f'Response: {response.text}')
return response

def create_provider_db(self):
Expand Down Expand Up @@ -224,4 +228,4 @@ def load_yaml(filename):
print(f'Config: {config}')

onboarder = KokuCustomerOnboarder(config)
onboarder.onboard()
onboarder.onboard()

0 comments on commit 6fa4539

Please sign in to comment.