ansibleplaybookbundle / ansible-playbook-bundle

THIS REPO IS MIGRATING: https://github.com/automationbroker/apb
GNU General Public License v2.0
140 stars 70 forks source link

Unhelpful error message when using "apb push --broker-name <name>" before "oc login" #155

Closed djwhatle closed 6 years ago

djwhatle commented 6 years ago

When I attempt an apb push using the broker-name option before I've authenticated with "oc login", I get an error message that doesn't indicate the problem.

$ apb push --broker-name aws-service-broker
Exception occurred! unsupported operand type(s) for +: 'NoneType' and 'str'

$ oc login
Authentication required for https://172.17.0.1:8443 (openshift)
Username: admin
Password: 
Login successful.

$ apb push --broker-name aws-service-broker
Successfully added APB to Ansible Service Broker
Successfully relisted the Service Catalog
djwhatle commented 6 years ago

After talking to @dymurray I determined that I was using this command incorrectly. When trying to push to a broker other than ASB, I needed to supply --broker-name as well as --broker