Skip to content

Commit c132663

Browse files
author
Gabriel Monroy
committed
Use correct method in socket module, gethostname()
1 parent 39e211c commit c132663

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cm/chef.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
_d[m[0]] = m[1].strip("'").strip('"')
3939
# set global variables from client.rb
4040
CHEF_SERVER_URL = _d['chef_server_url']
41-
CHEF_NODE_NAME = _d.get('node_name', socket.hostname())
42-
CHEF_CLIENT_NAME = _d.get('node_name', socket.hostname())
41+
CHEF_NODE_NAME = _d.get('node_name', socket.gethostname())
42+
CHEF_CLIENT_NAME = _d.get('node_name', socket.gethostname())
4343
CHEF_VALIDATION_NAME = _d['validation_client_name']
4444
# read the client key
4545
_client_pem_path = os.path.join(CHEF_CONFIG_PATH, 'client.pem')

0 commit comments

Comments
 (0)