Skip to content

Commit 6bdd501

Browse files
committed
PE-38219 - Installer - Windows as Jump host support - linting
1 parent c25743f commit 6bdd501

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plans/util/retrieve_and_upload.pp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,19 @@
3333
$os_string = $operating_system.first.value['osfamily']
3434

3535
if os_string == 'windows' {
36-
3736
$exists = run_command("[System.IO.File]::Exists('${local_path}')", 'local://localhost')
38-
39-
if $exists.first['stdout'].chomp == 'false'{
37+
if $exists.first['stdout'].chomp == 'false' {
4038
run_task('peadm::download', 'local://localhost',
4139
source => $source,
4240
path => $local_path,
4341
)
4442
}
45-
4643
} else {
4744
$exists = without_default_logging() || {
4845
run_command("test -e '${local_path}'", 'local://localhost',
4946
_catch_errors => true,
5047
).ok()
5148
}
52-
5349
unless $exists {
5450
run_task('peadm::download', 'local://localhost',
5551
source => $source,

0 commit comments

Comments
 (0)