Project

General

Profile

Actions

Bug #5958

closed

Hammer CLI: Undefined method error while adding/listing puppet modules to content-view

Added by Brad Buckingham over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1089905
Description of problem:

While adding the puppet module to selected cv, I got following error:
Could not add the puppet module:
undefined method `version' for nil:NilClass

And re-adding the same module, I got this error:
Could not add the puppet module:
Validation failed: Name has already been taken

Example: ==========
[root@dhcp201-107 ~]# hammer puppet-module list --repository-id 28
-------------------------------------|----------|---------|--------
ID | NAME | VERSION | AUTHOR
-------------------------------------|----------|---------|--------
0fc2dbcd-4cbf-41af-9d30-8b1aae5c33a2 | httpd | 0.2.0 | 5UbZ3r0
a99ac26f-86b1-4c21-9039-2ff8db766c12 | cron | 0.0.1 | 5UbZ3r0
c11a583b-371b-41d9-9485-0d3eea7dbe98 | pureftpd | 1.0.2 | 5UbZ3r0
c536af58-8739-48f0-8f17-1c152851771a | samba | 0.2.0 | 5UbZ3r0
-------------------------------------|----------|---------|--------

]# hammer content-view puppet-module add --name httpd --content-view-id 4
Could not add the puppet module:
undefined method `version' for nil:NilClass
  1. hammer content-view puppet-module add --name httpd --content-view-id 4
    Could not add the puppet module:
    Validation failed: Name has already been taken

[root@dhcp201-107 ~]# hammer content-view puppet-module list --content-view-id 4undefined method `version' for nil:NilClass
[root@dhcp201-107 ~]#

Version-Release number of selected component (if applicable):
  • apr-util-ldap-1.3.9-3.el6_0.1.x86_64
  • candlepin-0.9.9-1.el6.noarch
  • candlepin-selinux-0.9.9-1.el6.noarch
  • candlepin-tomcat6-0.9.9-1.el6.noarch
  • elasticsearch-0.90.10-4.el6.noarch
  • foreman-1.5.0-0.develop.201404131512git070b83f.el6.noarch
  • foreman-postgresql-1.5.0-0.develop.201404131512git070b83f.el6.noarch
  • foreman-proxy-1.5.0-0.develop.201404101114git85098a3.el6.noarch
  • foreman-release-1.5.0-0.develop.201404131512git070b83f.el6.noarch
  • foreman-selinux-1.5.0-0.develop.201402261344git2f43f94.el6.noarch
  • katello-1.5.0-14.201404131508git84cd57d.el6.noarch
  • katello-apache-1.0-1.noarch
  • katello-ca-1.0-1.noarch
  • katello-certs-tools-1.5.2-1.git.1.edab2c4.el6.noarch
  • katello-installer-0.0.19-1.201404021805git6ac0e9a.el6.noarch
  • katello-repos-1.5.1-1.git.14.0868bd1.el6.noarch
  • openldap-2.4.23-32.el6_4.1.x86_64
  • pulp-katello-plugins-0.2-1.el6.noarch
  • pulp-nodes-common-2.3.1-1.el6.noarch
  • pulp-nodes-parent-2.3.1-1.el6.noarch
  • pulp-puppet-plugins-2.3.1-1.el6.noarch
  • pulp-rpm-plugins-2.3.1-1.el6.noarch
  • pulp-selinux-2.3.1-1.el6.noarch
  • pulp-server-2.3.1-1.el6.noarch
  • python-ldap-2.3.10-1.el6.x86_64
  • ruby193-rubygem-ldap_fluff-0.2.2-2.el6.noarch
  • ruby193-rubygem-net-ldap-0.3.1-1.el6.noarch
  • ruby193-rubygem-runcible-1.0.8-1.el6.noarch
  • rubygem-hammer_cli-0.1.0-1.201404090839gitc07a987.git.0.9acea1c.el6.noarch
  • rubygem-hammer_cli_foreman-0.1.0-1.201404011518git2abbfd3.git.0.37211af.el6.noarch
  • rubygem-hammer_cli_foreman_tasks-0.0.2-1.201403312028gitdf60592.git.0.b4ebd5a.el6.noarch
  • rubygem-hammer_cli_katello-0.0.3-1.201404131527gitfb2a029.git.0.7153de9.el6.noarch

How reproducible:
always

Actual results:
undefined method error on adding/listing puppet modules to cv.

Expected results:
module should be added successfully

Additional info:

Actions

Also available in: Atom PDF