Skip to content

Commit

Permalink
Merge pull request #1751 from szok/hostname-bo-export
Browse files Browse the repository at this point in the history
Add hostname to ng export
  • Loading branch information
ar4s committed Sep 2, 2015
2 parents b5874d7 + a0bd452 commit a8d4e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ralph/export_to_ng/resources.py
Expand Up @@ -118,7 +118,7 @@ def dehydrate_owner(self, asset):

def dehydrate_hostname(self, asset):
try:
hostname = asset.device_info.ralph_device.name or ''
hostname = asset.hostname or ''
except AttributeError:
hostname = ''
return hostname
Expand Down

0 comments on commit a8d4e58

Please sign in to comment.