Skip to content

Commit 332c368

Browse files
committed
Templating issues, spacing
1 parent 38d3e19 commit 332c368

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/inspec/plural_resource.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@ name = "google_#{product_ns.downcase}_#{object.name.underscore}"
2626
supports platform: 'gcp-mm'
2727

2828
filter_table_config = FilterTable.create
29-
3029
<% object.all_user_properties.each do |prop| -%>
3130
<% unless prop.input -%>
3231
<%
3332
out = plural(prop.out_name)
3433
-%>
34+
3535
<%= "filter_table_config.add(:#{out}, field: :#{prop.out_name})" -%>
3636
<% end # unless prop.input -%>
3737
<% end # object.all_user_properties.each do -%>
3838

39+
3940
filter_table_config.connect(self, :fetch_data)
4041

4142
<%
@@ -67,7 +68,7 @@ end
6768
link_query = object.self_link_query || object.list_url_response
6869
-%>
6970
def fetch_data
70-
@data = fetch_wrapped_resource(<%= '#{link_query.kind}' -%>, <%= '#{link_query.items}' -%>)
71+
@data = fetch_wrapped_resource(<%= "'#{link_query.kind}'" -%>, <%= "'#{link_query.items}'" -%>)
7172
end
7273

7374
def fetch_wrapped_resource(wrap_kind, wrap_path)

0 commit comments

Comments
 (0)