Skip to content

Commit

Permalink
alias resource ID (#653)
Browse files Browse the repository at this point in the history
* alias resource ID

Signed-off-by: Sathish <sbabu@progress.com>

* remove resource ID from backend

Signed-off-by: Sathish <sbabu@progress.com>

* target id from resource ID

Signed-off-by: Sathish <sbabu@progress.com>

* fix Extra empty line detected at class body beginning

Signed-off-by: Sathish <sbabu@progress.com>
  • Loading branch information
sathish-progress authored May 18, 2022
1 parent b4ea1de commit 4a9510c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/azure_generic_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ def to_s(class_name = nil)
end
end

def resource_id
return NullResponse.new if failed_resource?

id
end

def resource_group
return unless exists?
res_group, _provider, _res_type = Helpers.res_group_provider_type_from_uri(id)
Expand Down

0 comments on commit 4a9510c

Please sign in to comment.