Skip to content

Commit

Permalink
fix typos - issue 87
Browse files Browse the repository at this point in the history
  • Loading branch information
southalc committed Nov 25, 2024
1 parent bc1bc03 commit 5ec1beb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/container.pp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
| END

$onlyif_prc = @("END"/L)
test $(podmain container inspect --format json ${container_name} |\
test $(podman container inspect --format json ${container_name} |\
${_ruby} -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =
| END

Expand Down
8 changes: 4 additions & 4 deletions spec/defines/container_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@

remove_onlyif = if %r{^\/opt\/puppetlabs\/}.match?(os_facts[:ruby]['sitedir'])
<<-END.gsub(%r{^\s+\|}, '')
|test $(podmain container inspect --format json namevar |/opt/puppetlabs/puppet/bin/ruby -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =#{' '}
|test $(podman container inspect --format json namevar |/opt/puppetlabs/puppet/bin/ruby -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =#{' '}
END
else
<<-END.gsub(%r{^\s+\|}, '')
|test $(podmain container inspect --format json namevar |/usr/bin/ruby -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =#{' '}
|test $(podman container inspect --format json namevar |/usr/bin/ruby -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =#{' '}
END
end

Expand Down Expand Up @@ -807,7 +807,7 @@
it { is_expected.to contain_exec('verify_container_image_namevar').with_unless(unless_ruby) }

onlyif_ruby = <<-END.gsub(%r{^\s+\|}, '')
|test $(podmain container inspect --format json namevar |/test/ing -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =#{' '}
|test $(podman container inspect --format json namevar |/test/ing -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =#{' '}
END

it { is_expected.to contain_exec('podman_remove_container_namevar').with_onlyif(onlyif_ruby) }
Expand All @@ -832,7 +832,7 @@
it { is_expected.to contain_exec('verify_container_image_namevar').with_unless(unless_ruby) }

onlyif_ruby = <<-END.gsub(%r{^\s+\|}, '')
|test $(podmain container inspect --format json namevar |/test/ing -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =#{' '}
|test $(podman container inspect --format json namevar |/test/ing -rjson -e 'puts (JSON.parse(STDIN.read))[0]["State"]["Running"]') =#{' '}
END

it { is_expected.to contain_exec('podman_remove_container_namevar').with_onlyif(onlyif_ruby) }
Expand Down

0 comments on commit 5ec1beb

Please sign in to comment.