Skip to content

Commit 0d9863d

Browse files
author
Damien Bergamini
committed
check lpar is not activated
Signed-off-by: Damien Bergamini <[email protected]>
1 parent 7dea38a commit 0d9863d

File tree

1 file changed

+1
-0
lines changed
  • app/models/manageiq/providers/ibm_power_hmc/infra_manager

1 file changed

+1
-0
lines changed

app/models/manageiq/providers/ibm_power_hmc/infra_manager/lpar.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class ManageIQ::Providers::IbmPowerHmc::InfraManager::Lpar < ManageIQ::Providers
77

88
supports :terminate do
99
unsupported_reason_add(:terminate, unsupported_reason(:control)) unless supports_control?
10+
unsupported_reason_add(:terminate, _("Cannot delete a running partition")) unless power_state == "off"
1011
end
1112

1213
def provider_object(connection = nil)

0 commit comments

Comments
 (0)