In Satellite server, Organization != Organization_ID

Spent a good chunk of yesterday and some of this morning stumped by a simple mistake I made.  I was trying to use our Satellite server via the Hammer command line tool to launch an instance, and kept getting and error in the content-view section.  I tried to list content views and got the same problem.  Here is a short section from my bash session.

$ hammer content-view list
Couldn't find organization 'DEMO'
$ hammer organization list
 5 | DEMO | DEMO | | DEMO

It turns out I had improperly set the default organization inside my config file.  I had:

$ cat ~/.hammer/defaults.yml 
---
:defaults:
 :organization_id:
 :value: DEMO

 

When I should have had

$ cat ~/.hammer/defaults.yml 
---
:defaults:
 :organization:
 :value: DEMO

Making this change got me moving ahead again.

Leave a Reply

Your email address will not be published. Required fields are marked *