Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into radjabov
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Aug 15, 2024
2 parents e98c62e + bba1132 commit 5cdae6e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
- name: Run tests
run: bundle exec rake
- name: Report code coverage
if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' }}"
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' }}
continue-on-error: true
uses: paambaati/codeclimate-action@v6
uses: paambaati/codeclimate-action@v8
1 change: 0 additions & 1 deletion .whitesource
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"settingsInheritedFrom": "ManageIQ/whitesource-config@master"
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,22 @@ module ManageIQ::Providers::Vmware::InfraManager::Vm::Operations::Guest

included do
supports :reboot_guest do
reason = unsupported_reason(:control)
return reason if reason

if current_state == "on"
if tools_status == 'toolsNotInstalled'
_("The VM tools is not installed")
end
else
if current_state != "on"
_("The VM is not powered on")
elsif tools_status == 'toolsNotInstalled'
_("The VM tools is not installed")
else
unsupported_reason(:control)
end
end

supports :shutdown_guest do
reason = unsupported_reason(:control)
return reason if reason

if current_state == "on"
if tools_status == 'toolsNotInstalled'
_("The VM tools is not installed")
end
else
if current_state != "on"
_("The VM is not powered on")
elsif tools_status == 'toolsNotInstalled'
_("The VM tools is not installed")
else
unsupported_reason(:control)
end
end

Expand Down

0 comments on commit 5cdae6e

Please sign in to comment.