Satellite hammer cli can't synchronize capsule content by environment name

Solution In Progress - Updated -

Issue

It appears that you can't synchronize capsule content by environment name.

However you can by environment id.

Referencing by environment name does not work

[root@acme123 cript]#
[root@acme123 script]# hammer -u admin -p changeme capsule content synchronize --environment 'development' --name 'capsule1.acme.com'
Could not synchronize capsule content:
  Error: environment not found
[root@acme123 script]#
[root@acme123 script]# hammer -u admin -p changeme lifecycle-environment list --organization ACME
---|-------------|------------
ID | NAME        | PRIOR
---|-------------|------------
2  | Library     |
5  | production  | stage
8  | STG         | Library
4  | stage       | development
7  | Dev         | Library
3  | development | Library
9  | PROD        | Library
---|-------------|------------
[root@acme123 script]#

Referencing by environment id works

[root@acme123 script]# hammer -u admin -p changeme capsule content synchronize --environment-id 3 --id 2

Environment

Red Hat Satellite or Proxy
6.0

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.