Skip to content

Commit

Permalink
Don't parse host.parent
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Feb 13, 2019
1 parent 751b0d8 commit 740742e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def parse_host_system(object, kind, props)
:ems_ref => object._ref,
:ems_ref_obj => managed_object_to_vim_string(object),
:ems_cluster => cluster,
:parent => cluster,
}

parse_host_system_summary(host_hash, props)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,6 @@ def assert_specific_host

expect(host).not_to be_nil

expect(host.parent).not_to be_nil
expect(host.parent.ems_ref).to eq("domain-c12")

switch = host.switches.find_by(:name => "vSwitch0")

expect(switch).not_to be_nil
Expand Down Expand Up @@ -735,7 +732,7 @@ def assert_specific_cluster
expect(cluster.parent).not_to be_nil
expect(cluster.parent.ems_ref).to eq("group-h4")

expect(cluster.children.count).to eq(5)
expect(cluster.children.count).to eq(1)
expect(cluster.default_resource_pool.ems_ref).to eq("resgroup-13")
end

Expand Down

0 comments on commit 740742e

Please sign in to comment.