usharesoft / hammr

Command-line tool for building consistent and repeatable machine images for multiple cloud platforms
http://hammr.io
Apache License 2.0
28 stars 24 forks source link

hammr create account for Oracle Cloud returns a misleading error message if the user does not have access to the Oracle Cloud target platform #431

Open alefebvr opened 6 years ago

alefebvr commented 6 years ago

Documentation says: http://docs.usharesoft.com/projects/hammr/en/latest/pages/machine-images/builders/builders-oracle-cloud.html that the account type is "Oracle". Trying with

---
accounts:
        - type: Oracle

raises ERROR: Platform type unknown: Oracle In fact, the user does not have access to the Oracle Cloud target platform. Creating the account with another user which has access to the target platform goes fine.

Instead, we would expect the error message to be more explicit, e.g. ERROR: You do not have access to the target platform: Oracle.