Skip to content

Commit

Permalink
In g release, lazy_find accepts only string
Browse files Browse the repository at this point in the history
In g release, lazy_find accepts only string
  • Loading branch information
Ladas authored and cben committed Mar 27, 2018
1 parent 888aed8 commit df46123
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
)
)
)

@data[:container_quota_items] = ::ManagerRefresh::InventoryCollection.new(
container_quota_items_init_data(inventory_collection_options(options))
)
Expand Down Expand Up @@ -221,10 +222,10 @@
@container_quota_items_data_2 = container_quota_items_data(2)

@container_quota_items_attrs_data_1 = container_quota_items_attrs_data(1).merge(
:resource => @data[:container_quota_items].lazy_find(container_quota_items_data(1)[:quota_desired])
:resource => @data[:container_quota_items].lazy_find(container_quota_items_data(1)[:quota_desired].to_s)
)
@container_quota_items_attrs_data_2 = container_quota_items_attrs_data(2).merge(
:resource => @data[:container_quota_items].lazy_find(container_quota_items_data(2)[:quota_desired])
:resource => @data[:container_quota_items].lazy_find(container_quota_items_data(2)[:quota_desired].to_s)
)

# Fill InventoryCollections with data
Expand All @@ -249,6 +250,7 @@
add_data_to_inventory_collection(@data[:container_quota_items_attrs],
@container_quota_items_attrs_data_1,
@container_quota_items_attrs_data_2)

# Assert data before save
expect(@network_port1.device).to eq @vm1
expect(@network_port1.name).to eq "network_port_name_1"
Expand Down

0 comments on commit df46123

Please sign in to comment.