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