Skip to content

Commit

Permalink
Merge pull request #339 from miha-plesko/hardcoded-disconnected-to-false
Browse files Browse the repository at this point in the history
Forcibly mark vCloud VMs as not disconnected
  • Loading branch information
agrare authored Nov 19, 2018
2 parents 90b7efc + bb76c59 commit 1ee0757
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/models/manageiq/providers/vmware/cloud_manager/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ def provider_object(connection = nil)
"suspended" => "suspended"
}.freeze

def disconnected
false
end

def disconnected?
false
end

def self.calculate_power_state(raw_power_state)
# https://github.com/xlab-si/fog-vcloud-director/blob/master/lib/fog/vcloud_director/parsers/compute/vm.rb#L70
POWER_STATES[raw_power_state.to_s] || "terminated"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,13 @@
vm.raw_suspend
end
end

it '.disconnected' do
expect(subject.disconnected).to be_falsey
end

it '.disconnected?' do
expect(subject.disconnected).to be_falsey
end
end
end

0 comments on commit 1ee0757

Please sign in to comment.