Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass resource group as a string to power operation methods #160

Merged
merged 1 commit into from
Nov 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module ManageIQ::Providers::Azure::CloudManager::Vm::Operations::Power
end

def raw_suspend
provider_service.stop(name, resource_group)
provider_service.stop(name, resource_group.name)
update_attributes!(:raw_power_state => "VM stopping")
end

Expand All @@ -20,22 +20,22 @@ def validate_pause
end

def raw_start
provider_service.start(name, resource_group)
provider_service.start(name, resource_group.name)
update_attributes!(:raw_power_state => "VM starting")
end

def raw_stop
provider_service.deallocate(name, resource_group)
provider_service.deallocate(name, resource_group.name)
update_attributes!(:raw_power_state => "VM deallocating")
end

def raw_restart
provider_service.restart(name, resource_group)
provider_service.restart(name, resource_group.name)
update_attributes!(:raw_power_state => "VM starting")
end

def reboot_guest
provider_service.restart(name, resource_group)
provider_service.restart(name, resource_group.name)
update_attributes!(:raw_power_state => "VM starting")
end
end