# File lib/fog/softlayer/requests/network/get_network_tags.rb, line 14 def get_network_tags(id) response = Excon::Response.new response.status = self.get_network(id).status net = self.get_network(id).body unless net['error'] tags = @tags.map do |tag| tag if tag['resourceTableId'] == id end.compact end net['tagReferences'] = tags if net.is_a?(Hash) response.body = net if response.status == 404 response.body = { "error"=>"Unable to find object with id of '#{id}'.", "code"=>"SoftLayer_Exception_ObjectNotFound" } end response end