Bug #19718
content-views import fails when content view has not yet been published
Description
hammer_cli_csv-2.2.1.1
1. Create a content view (no repos necessary; do not publish)
2. Export content views (`hammer csv content-views --export --file /tmp/content_views.csv`)
3. Import the content views (`hammer csv content-views --file /tmp/content_views.csv)
Results:
NoMethodError (undefined method `each' for nil:NilClass):
/home/vagrant/hammer-cli-csv/lib/hammer_cli_csv/content_views.rb:155:in `promote_content_view'
Associated revisions
History
#1
Updated by The Foreman Bot almost 5 years ago
- Pull request https://github.com/Katello/hammer-cli-csv/pull/155 added
#2
Updated by David Davis almost 5 years ago
- Pull request deleted (
https://github.com/Katello/hammer-cli-csv/pull/155)
#3
Updated by The Foreman Bot almost 5 years ago
- Pull request https://github.com/Katello/hammer-cli-csv/pull/156 added
#4
Updated by David Davis almost 5 years ago
- Bugzilla link set to 1458575
#5
Updated by Andrew Kofink almost 5 years ago
- Status changed from New to Ready For Testing
- Target version changed from 193 to 196
#6
Updated by Andrew Kofink almost 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-csv|ebb0044392b6f7a8242ce9c13dcd2fd8125c7269.
Fixes #19718 - Allow import of unpublished CVs