Skip to content

Commit

Permalink
Fixes #7269: rudder agent info
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed Oct 12, 2015
1 parent 4f242e6 commit 6990ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/commands/agent-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# @man what defines the node (hostname, uuid and key hash) and its
# @man policy server.

HOSTNAME=$(hostname)
HOSTNAME=$(hostname -f)
[ $? -ne 0 ] && HOSTNAME="not found"

UUID=$(cat /opt/rudder/etc/uuid.hive 2>/dev/null)
Expand Down

3 comments on commit 6990ef4

@matya
Copy link
Contributor

@matya matya commented on 6990ef4 Oct 16, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope this does not set the Hostname to -f on AIX, as it would do on Solaris. Or is this only targeted for Linux systems?

@peckpeck
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, we overlooked this one

@peckpeck
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#27

Please sign in to comment.