fixes #17589 - display more descriptive message when unable to import
Bump version to 0.11.3
Bump version to 0.11.2
Eric Helms suggested changes
refs #14615 - properly map host id
Refs #14616: Use clean bash environment to shell out for puppet (#29)
Bump version to 0.11.0
refs #14615 - handle no host collections, no channels
fixes #14616 - correct handling of EOF error
fixes #14615 - update api calls for hosts
Update version manually to 0.10.23
Bug 1291690 - hammer import refers to an internal name
hammer import all --delete --help referred to "stargate-exportdirectory". Updated to be generic.
Update version manually to 0.10.22
1226981 - puppet-username and file-names insured to be non-UTF-8
bumping version to 0.10.21
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.20-1].
1231956 - do not set basearch/releasever if not present in substitutions for repository enablement
1231956 - recover even if sat6 reports untrue repository information
'"enabled": false' is returned for enabled repositories (Bug 1240715)
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.19-1].
1231956 - some of the available repos do not substitute $releasever
1231956 - $releasever needs to be substituted for some repository-sets
to enable them
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.18-1].
1224268 - allow caching of non-persistent entity lists
especially for import repository-enable cmdfor only 3 rh repositories (45 products) enhancement: 5m22.834s -> 2m34.189s
1222039 - use File.expand_path instead of File.absolute_path
File.absolute_path was introduced first in ruby 1.9.1(so not available on RHEL6)
fix information message (wrong entity listed)
1228194 - before deleting a content view, we first need to delete it from associated environments
changed since Sat6.0
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.17-1].
1222448 - do not try to associate activation keys with content views that are not ready yet
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.16-1].
1215199 - support different repository architectures within one repository set
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.14-1].
addressing the rest of rubocop 0.31.0 issues
rubocop: addressing various offenses
1224268 - adapt repository enablement for Sat 6.1 API changes
product_content is no longer part of product entity
Detect broken CSV
to prevent wrong insertions
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.13-1].
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.12-1].
use absolute export directory path for the rpmbuild instructions
when the user speciffied --export-directory as relative path, he got:error: File <relative-path>/SOURCES/system-profile-transition-<hostname>-<timestamp>-0.0.1.tar.gz: No such file or directory
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.11-1].
1165825 - use only the latest content view version
(not all of them) for one content view when creating composite content views
addressing: {"displayMessage":"Validation failed: Repository conflict: 'Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server' is in .","errors":{"base":["Repository conflict: 'Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server' is in ."]}}
detect a synced repository
as this has evidently changed since Sat6.0
prevent nil exceptionaddressing:Caught TypeError:no implicit conversion of nil into String while processing CSV line:.../usr/share/gems/gems/hammer_cli_import-0.10.6.3/lib/hammer_cli_import/templatesnippet.rb:41:in `+'/usr/share/gems/gems/hammer_cli_import-0.10.6.3/lib/hammer_cli_import/templatesnippet.rb:41:in `mk_snippet_hash'...
1136361 - add 'logtrace <exception>' logging-method
1136899 - with_synced_repo will always issue action if repo is already sync'd
1136841 - give a better error-msg when repo-enable fails
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.10-1].
1195329 - Fix AK-update call and some warning-verbiage
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.9-1].
1192581 - Made prev commit more reliable/safer
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.8-1].
1192581 - special-case org-create call
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.7-1].
1192556 - The way to dig out apipie-binding auth changed in 0.11
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.6-1].
1160847 - interface-macros are special.
1165151 - Integer(nil) behavior chgd between 1.8.7 and 2.0
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.5-1].
1140256 - system-profile-transition rpm should avoid using advanced rpmlib capabilities
tested, so this way it should work
1138696 - propagate --synchronize and --wait options to the import content-view sub-command
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.4-1].
1136530 - remove dist tag from release in the rpmbuild instructions
1136463 - do not create composite content view, if no there're no associated channels
do not print the rpmbuild instructions if no system profiles were transitioned
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.3-1].
fix exception message
adressing:Creation of repositories not recovered by '' strategy. while processing CSV line:
catch exception when publishing of content view fails
Field last_sync id not always set
in such case trying to parse it causes exception...
as delete_content_view does not throw exception at failure
we need a bad hack when trying to delete system content views silently
catch sat6 delete excetion for content view versions removal
catch sat6 delete exception and count them into summary
do not count unavailable entities as :found when deleting
add the innocent line lost by refactoring
1133846 - Teach config-file the diff between 'created' and 'wrote' - Summary now recognizes :wrote and :failed - configfile summarizes filesystem ops as :wrote - configfile.rb checks for hammer-invocation-failure - tripped over/fixed a bug in rcop fix from prev commit
rubocop: lib/hammer_cli_import/base.rb:345:5: C: Cyclomatic complexity for create_entity is too high. [20/11] - Broke out the error-checking in create_entity into bite-sized pieces
1135588 - Teach config-file to reuse credentials from @api
catch exceptions when deleting system content views
extent recognizing of already existing objects
organization: /has already been taken/user: /already exists/host-collection: /must be unique within one organization/product: Product with name '<name>' already exists in this organizationrepository: /has already been taken for this product./...
return object if mapped as create_entity does
1134576 - do not call methods on nil, ruby does not like it
do not export_files in case @modules weren't even initialized
Change the way of obtaining @api
So it reflects all possible ways of getting credentialsthat other submodules/subcommands use
1133972 - adapt code to actual sat6 exception
sat6 claims: ["title", ["has already been taken"]] when importing organization w/same name as already existsbut organization has no attribute 'title' ...
Address state without initialized var
Rewording
...to stress out that without importing things that wedepend on, we simply won't import entities that depend onnon-imported entity...
when searching for a content view, first check redhat cvs
especially for cases when not found, not to get an error message about redhat content view not being found
1133547 - Fix missing module name...
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.2-1].
This actually can be useful
when something goes sufficiently wrong....
1132481 - rename ~/data directory to ~/.transition_data
replace ak with "activation key"
Apply abstracted code for suppressing exceptions
Abstract often used exception handling
1132644 - Pass along --no-async if specified
1132642 - put back --macro-mapping to 'all'
1132553 - Fix config-files descr
Handle exceptions in post import
1130558 - do not check 'updated_at', it is unreliable
...at least for our purposes.
Automatic commit of package [rubygem-hammer_cli_import] release [0.10.1-1].
fix content host and host collection association