Skip to content

Commit adf971a

Browse files
(PE-40377) better empty check for upgrade_version
1 parent 07be8f0 commit adf971a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/acceptance/peadm_spec/plans/test_migration.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
}
8888
8989
# if a new PE version was specified then check it has been upgraded
90-
if $upgrade_version and $upgrade_version != '' {
90+
out::message("upgrade_version:${upgrade_version}.")
91+
if $upgrade_version and $upgrade_version != '' and !empty($upgrade_version) {
9192
if $peadm_config['value']['pe_version'] == $upgrade_version {
9293
out::message("Upgraded to new PE version ${upgrade_version} correctly")
9394
} else {

0 commit comments

Comments
 (0)