Skip to content

Commit

Permalink
Fixes #15194: Parent ticket breaks reporting when trying to use lates…
Browse files Browse the repository at this point in the history
…t version and absent state - 5.1
  • Loading branch information
amousset committed Jul 10, 2019
1 parent 51d88b9 commit 09a708b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tree/20_cfe_basics/packages.cf
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,15 @@ bundle agent ncf_package(name, version, architecture, provider, state, options)
"version_description" string => "in version ${version}";

# Log message
pass3::
pass3.!(!state_present.version_latest)::
"message" string => "If you tried to install a virtual package, please use in place the concrete package you want to install.${const.endl}${state_description} of package ${name}${architecture_description}${version_description}",
ifvarclass => "${old_class_prefix}_not_ok|${class_prefix}_not_ok";

pass3.!(!state_present.version_latest)::
"message" string => "${state_description} of package ${name}${architecture_description}${version_description}",
ifvarclass => "!(${old_class_prefix}_not_ok|${class_prefix}_not_ok)";

pass3.!state_present.version_latest::
"message" string => "${state_description} of package ${name}${architecture_description}${version_description} is not supported and",
ifvarclass => "!(${old_class_prefix}_not_ok|${class_prefix}_not_ok)";
!state_present.version_latest::
"message" string => "${state_description} of package ${name}${architecture_description}${version_description} is not supported and";

defaults:
"version" string => "any", if_match_regex => "";
Expand Down

0 comments on commit 09a708b

Please sign in to comment.