Description of problem: When you create a sync plan via the cli you can provide a description, but the Info subcommand does not display this field: [root@qetello02 hammer_cli_katello-0.0.3]# hammer -v sync-plan create --help Usage: hammer sync-plan create [OPTIONS] Options: --description DESCRIPTION sync plan description --interval INTERVAL how often synchronization should run One of 'none', 'hourly', 'daily', 'weekly' Default: "none" --name NAME sync plan name --organization-id ORGANIZATION_ID Filter products by organization name or label --sync-date SYNC_DATE start date and time of the synchronization defaults to now Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format Default: "2014-03-28 16:38:30" -h, --help print help [root@qetello02 hammer_cli_katello-0.0.3]# hammer -v sync-plan info --id=1 --organization-id='ACME_Corporation' ID: 1 Name: foo Start Date: 2014/04/14 13:00:00 Interval: daily Created at: 2014/03/28 19:13:55 Updated at: 2014/03/28 19:13:55 Version-Release number of selected component (if applicable): * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.7-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.7-1.el6_5.noarch * candlepin-tomcat6-0.9.7-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.5.0.11-1.el6sat.noarch * foreman-compute-1.5.0.11-1.el6sat.noarch * foreman-libvirt-1.5.0.11-1.el6sat.noarch * foreman-postgresql-1.5.0.11-1.el6sat.noarch * foreman-proxy-1.5.4-1.el6sat.noarch * foreman-selinux-1.5.0-0.develop.el6sat.noarch * katello-1.5.0-19.el6sat.noarch * katello-apache-1.0-1.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.5-1.el6sat.noarch * katello-installer-0.0.31-1.el6sat.noarch * openldap-2.4.23-31.el6.x86_64 * pulp-katello-plugins-0.2-1.el6sat.noarch * pulp-nodes-common-2.3.1-0.4.beta.el6sat.noarch * pulp-nodes-parent-2.3.1-0.4.beta.el6sat.noarch * pulp-puppet-plugins-2.3.1-0.4.beta.el6sat.noarch * pulp-rpm-plugins-2.3.1-0.4.beta.el6sat.noarch * pulp-selinux-2.3.1-0.4.beta.el6sat.noarch * pulp-server-2.3.1-0.4.beta.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-ldap_fluff-0.2.2-2.el6sat.noarch * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.0.8-1.el6sat.noarch How reproducible: Steps to Reproduce: 1. Use hammer cli sync-plan to create a sync plan with a description 2. Use hammer cli sync-plan to get information about the sync plan 3. Actual results: The description field is not displayed Expected results: Additional info: 2014-03-28 16:31:40 - robottelo - INFO - Paramiko instance prepared (and would be reused): 0x104db7e10 2014-03-28 16:31:40 - robottelo - DEBUG - Running test TestSyncPlan/test_positive_update_1_1___description___u_tRicZfAuZToULlh__ 2014-03-28 16:31:40 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv organization create --name='1qzx7h' 2014-03-28 16:31:44 - robottelo - DEBUG - <<< [u'Message,Id,Name', u'Organization created,300,1qzx7h', u''] 2014-03-28 16:31:44 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv organization info --id='300' 2014-03-28 16:31:46 - robottelo - DEBUG - <<< [u'Id,Name,Created at,Updated at,Label,Description', u'300,1qzx7h,2014/03/28 20:31:40,2014/03/28 20:31:41,1qzx7h,', u''] 2014-03-28 16:31:51 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv sync-plan create --interval='hourly' --sync-date='2014-03-28 16:31:51' --name='wjgHpwwPTzMmSYXmNjAh' --organization-id='1qzx7h' --description='geFVJXUxAScZDIDFqeAt' 2014-03-28 16:31:53 - robottelo - DEBUG - <<< [u'Message,Id,Name', u'Sync plan created,158,wjgHpwwPTzMmSYXmNjAh', u''] 2014-03-28 16:31:53 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv sync-plan info --id='158' --organization-id='1qzx7h' 2014-03-28 16:31:54 - robottelo - DEBUG - <<< [u'ID,Name,Start Date,Interval,Created at,Updated at', u'158,wjgHpwwPTzMmSYXmNjAh,2014/03/28 16:31:51,hourly,2014/03/28 20:31:51,2014/03/28 20:31:51', u''] 2014-03-28 16:32:00 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv sync-plan info --id='158' --organization-id='1qzx7h' 2014-03-28 16:32:02 - robottelo - DEBUG - <<< [u'ID,Name,Start Date,Interval,Created at,Updated at', u'158,wjgHpwwPTzMmSYXmNjAh,2014/03/28 16:31:51,hourly,2014/03/28 20:31:51,2014/03/28 20:31:51', u''] 2014-03-28 16:32:02 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv sync-plan update --id='158' --organization-id='1qzx7h' --description='tRicZfAuZToULlh' 2014-03-28 16:32:03 - robottelo - DEBUG - <<< [u'Message,Id,Name', u'Sync plan updated,158,wjgHpwwPTzMmSYXmNjAh', u''] 2014-03-28 16:32:03 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv sync-plan info --id='158' --organization-id='1qzx7h' 2014-03-28 16:32:05 - robottelo - DEBUG - <<< [u'ID,Name,Start Date,Interval,Created at,Updated at', u'158,wjgHpwwPTzMmSYXmNjAh,2014/03/28 16:31:51,hourly,2014/03/28 20:31:51,2014/03/28 20:32:02', u'']
Can you please add hammer* to the package list? I ask because in dev I am seeing the descriptions [bkearney@bkearney hammer-cli]$ bundle exec bin/hammer sync-plan create --organization-id DemoOrg --name 'Daily' --interval 'daily' --description='Evey day' Sync plan created [bkearney@bkearney hammer-cli]$ bundle exec bin/hammer sync-plan list --organization-id DemoOrg ---|-------|----------------------|--------- ID | NAME | START DATE | INTERVAL ---|-------|----------------------|--------- 15 | Daily | 2014/03/30 16:48:43 | daily ---|-------|----------------------|--------- [bkearney@bkearney hammer-cli]$ bundle exec bin/hammer sync-plan info --id 15 ID: 15 Name: Daily Start Date: 2014/03/30 16:48:43 Interval: daily Description: Evey day Created at: 2014/03/30 20:48:43 Updated at: 2014/03/30 20:48:43 [bkearney@bkearney hammer-cli]$
@Bryan, I added it on the 29th. https://github.com/Katello/hammer-cli-katello/pull/130
Verified with Satellite-6.0.3-RHEL-6-20140430.4 [root@qetello02 yum.repos.d]# hammer sync-plan create --organization-id sghai123 --name 'Daily' --interval 'daily' --description='validate description' Sync plan created [root@qetello02 yum.repos.d]# hammer sync-plan list --organization-id sghai123 ---|-------|----------------------|--------- ID | NAME | START DATE | INTERVAL ---|-------|----------------------|--------- 92 | Daily | 2014/05/06 05:44:01 | daily ---|-------|----------------------|--------- [root@qetello02 yum.repos.d]# hammer sync-plan info --id 92 ID: 92 Name: Daily Start Date: 2014/05/06 05:44:01 Interval: daily Description: validate description Created at: 2014/05/06 09:44:02 Updated at: 2014/05/06 09:44:02
This was delivered with 6.0.3, which is the Satellite 6 Beta.
This was delivered in 6.0.3, the Beta version of Satellite 6.0
This was delivered in the Satellite 6 Beta (6.0.3)