Skip to content

Commit

Permalink
Add deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bouchare committed Aug 23, 2019
1 parent d8c4b9e commit 75660fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datadog/util/hostname.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def get_hostname(from_config=True):
config = get_config()
config_hostname = config.get('hostname')
if config_hostname and is_valid_hostname(config_hostname):
log.debug("Hostname lookup from agent configuration"
" will be deprecated in an upcoming version of datadogpy")
return config_hostname
except CfgNotFound:
log.debug("No agent or invalid configuration file found")
Expand Down

0 comments on commit 75660fd

Please sign in to comment.