Method: Inspec::Resources::AzureResourceBase#has_tags?

Defined in:
lib/resources/azure/azure_backend.rb

#has_tags?Boolean

Does the resource have any tags?

If it is a Hashtable then it does not, because there was nothing to parse so there is not a nested object to work with

Returns:

  • (Boolean)

Author:

  • Russell Seymour



132
133
134
# File 'lib/resources/azure/azure_backend.rb', line 132

def has_tags?
  tags.is_a?(Hash) ? false : true
end