content view filter does not use 'Default' organization and location in hammer

Solution In Progress - Updated -

Issue

When creating the content view filter using hammer, it does not read the default organization and location from the defaults.yml file.

When running the command:

hammer content-view filter create --name "april_release" --type erratum --inclusion true --content-view CV_XYZ

We receive the error

Could not create the filter: 
Error: At least one of options --organization-id, --organization, --organization-label is required                                  
See: 'hammer content-view filter create --help'                                                                                                       

This is despite having a default organization and default location set. All the other hammer commands except the content-view filter and content-view filter rule commands seem to honour the default organization and location.

Environment

6.2

Red Hat Satellite or Proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.