Skip to content

Commit

Permalink
Merge 90a896e into 4710917
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-henderson authored Jul 10, 2018
2 parents 4710917 + 90a896e commit 5ed7bd0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build/ansible
2 changes: 1 addition & 1 deletion build/terraform
5 changes: 3 additions & 2 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,10 @@ objects:
global/images/family/my-private-family
input: true
# TODO(nelsonjr): Make this a resource refefence
- !ruby/object:Api::Type::String
- !ruby/object:Api::Type::ResourceRef
name: 'type'
resource: 'DiskType'
imports: 'selfLink'
description: |
URL of the disk type resource describing which disk type to use to
create the disk. Provide this when creating the disk.
Expand Down
4 changes: 2 additions & 2 deletions provider/ansible/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def request_output(prop, hash_name, module_name)
].join
elsif prop.is_a?(Api::Type::ResourceRef) && \
prop.resource_ref.virtual && prop.imports == 'selfLink'
func_name = Google::StringUtils.underscore("#{prop.name}_selflink")
func = "#{Google::StringUtils.underscore(prop.resource)}_selflink"
[
"#{func_name}(#{hash_name}.get(#{quote_string(prop.out_name)}),",
"#{func}(#{hash_name}.get(#{quote_string(prop.out_name)}),",
"#{module_name}.params)"
].join(' ')
elsif prop.is_a?(Api::Type::Array) && \
Expand Down

0 comments on commit 5ed7bd0

Please sign in to comment.