Description of problem: When listing products by command line, headpin, PGError is returned. <snip> headpin> product list --org ACME_Corporation PGError: ERROR: column environments.locker does not exist LINE 1: SELECT "environments".* FROM "environments" WHERE "environme... ^ : SELECT "environments".* FROM "environments" WHERE "environments"."locker" = 't' AND "environments"."organization_id" = 1 </snip> Reproducer: headpin -u [user] -p [password] shell headpin> product list --org ACME_Corporation Expected Results: In this case a error should be returned explaining that an environment option must be passed as ACME_Corporation has multiple environments.
Fixed in HTB#6 katello-headpin-0.1.140-3 or later
[root@cubert ~]# headpin -u admin -p admin shell headpin> client remember --option org --value manifestZ3iImD2gCTwNBtv Successfully remembered option [ org ] headpin> product list ------------------------------------------------------------------------------------------------------------------------------------------------ Product List For Organization manifestZ3iImD2gCTwNBtv, Environment 'Library' Id Name Provider Id Provider Name Sync Plan Name GPG key ------------------------------------------------------------------------------------------------------------------------------------------------ 69 Red Hat Enterprise Linux Server 4 Red Hat RH0103708 Red Hat Enterprise Linux Server Premium 8 sockets Up to 4 guests 4 Red Hat RH0197181 Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest 4 Red Hat VERIFIED katello-headpin-all-0.1.141-1.el6.noarch