[katello] "undefined method `strip' for nil:NilClass" when generating capsule

Hi,

On katello 3.1 capsule generation, I get errors "undefined method
`strip' for nil:NilClass" and the generation fails.

capsule-certs-generate --capsule-fqdn " capsule-test.netbulae.test"\
 >                        --certs-tar "~/capsule-test.netbulae.test.tar"
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
40:/usr/share/katello-installer-base/modules/certs/manifests/apache.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
40:/usr/share/katello-installer-base/modules/certs/manifests/apache.pp
  /Stage[main]/Certs::Apache/Cert[
capsule-test.netbulae.test-apache]/ensure: change from absent to
present failed: Could not set 'present' on ensure: undefined method
`strip' for nil:NilClass at
40:/usr/share/katello-installer-base/modules/certs/manifests/apache.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
28:/usr/share/katello-installer-base/modules/certs/manifests/qpid.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
28:/usr/share/katello-installer-base/modules/certs/manifests/qpid.pp
  /Stage[main]/Certs::Qpid/Cert[
capsule-test.netbulae.test-qpid-broker]/ensure: change from absent
to present failed: Could not set 'present' on ensure: undefined
method `strip' for nil:NilClass at
28:/usr/share/katello-installer-base/modules/certs/manifests/qpid.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
32:/usr/share/katello-installer-base/modules/certs/manifests/puppet.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
32:/usr/share/katello-installer-base/modules/certs/manifests/puppet.pp
  /Stage[main]/Certs::Puppet/Cert[
capsule-test.netbulae.test-puppet-client]/ensure: change from absent
to present failed: Could not set 'present' on ensure: undefined
method `strip' for nil:NilClass at
32:/usr/share/katello-installer-base/modules/certs/manifests/puppet.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
28:/usr/share/katello-installer-base/modules/certs/manifests/qpid_client.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
28:/usr/share/katello-installer-base/modules/certs/manifests/qpid_client.pp
  /Stage[main]/Certs::Qpid_client/Cert[
capsule-test.netbulae.test-qpid-client-cert]/ensure: change from
absent to present failed: Could not set 'present' on ensure:
undefined method `strip' for nil:NilClass at
28:/usr/share/katello-installer-base/modules/certs/manifests/qpid_client.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
50:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
50:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
  /Stage[main]/Certs::Qpid_router/Cert[
capsule-test.netbulae.test-qpid-router-client]/ensure: change from
absent to present failed: Could not set 'present' on ensure:
undefined method `strip' for nil:NilClass at
50:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
31:/usr/share/katello-installer-base/modules/certs/manifests/foreman.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
31:/usr/share/katello-installer-base/modules/certs/manifests/foreman.pp
  /Stage[main]/Certs::Foreman/Cert[
capsule-test.netbulae.test-foreman-client]/ensure: change from
absent to present failed: Could not set 'present' on ensure:
undefined method `strip' for nil:NilClass at
31:/usr/share/katello-installer-base/modules/certs/manifests/foreman.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
33:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
33:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
  /Stage[main]/Certs::Qpid_router/Cert[
capsule-test.netbulae.test-qpid-router-server]/ensure: change from
absent to present failed: Could not set 'present' on ensure:
undefined method `strip' for nil:NilClass at
33:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
66:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
66:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
  /Stage[main]/Certs::Foreman_proxy/Cert[
capsule-test.netbulae.test-foreman-proxy-client]/ensure: change from
absent to present failed: Could not set 'present' on ensure:
undefined method `strip' for nil:NilClass at
66:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
48:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
  Could not set 'present' on ensure: undefined method `strip' for
nil:NilClass at
48:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
  /Stage[main]/Certs::Foreman_proxy/Cert[
capsule-test.netbulae.test-foreman-proxy]/ensure: change from absent
to present failed: Could not set 'present' on ensure: undefined
method `strip' for nil:NilClass at
48:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
Installing Done                                               [100%]
[................................................................................................................................]
   Something went wrong! Check the log for ERROR-level output
   The full log is at /var/log/capsule-certs-generate.log

Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts

ยทยทยท ----------------
Tel: 053 20 30 270 	info@netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01