summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-09-27 20:10:03 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-09-27 20:10:03 +0000
commit3e7edf541dcb3466b64d771afa16c92918aa687c (patch)
tree78eac06759c40fac5c5faa62fbb8ebdfa47beb73
parent369323bd91202879929b47e0278309018ea76d52 (diff)
downloadbcfg2-3e7edf541dcb3466b64d771afa16c92918aa687c.tar.gz
bcfg2-3e7edf541dcb3466b64d771afa16c92918aa687c.tar.bz2
bcfg2-3e7edf541dcb3466b64d771afa16c92918aa687c.zip
switch to fqdns for all client names
(Logical change 1.322) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1311 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/sbin/Bcfg2Server8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sbin/Bcfg2Server b/src/sbin/Bcfg2Server
index efee505d1..32e17cbc8 100644
--- a/src/sbin/Bcfg2Server
+++ b/src/sbin/Bcfg2Server
@@ -82,7 +82,7 @@ class BcfgServer(Server):
client = setup['client']
else:
try:
- client = gethostbyaddr(peer)[0].split('.')[0]
+ client = gethostbyaddr(peer)[0]
except herror:
return Element("error", type='host resolution error')
@@ -101,7 +101,7 @@ class BcfgServer(Server):
'''Get Probes for Client'''
r = Element('probes')
try:
- client = gethostbyaddr(peer)[0].split('.')[0]
+ client = gethostbyaddr(peer)[0]
except herror:
return Element("error", type='host resolution error')
try:
@@ -116,7 +116,7 @@ class BcfgServer(Server):
def put_probe_data(self, xml, (peer, port)):
'''Return Probe output to generators'''
try:
- client = gethostbyaddr(peer)[0].split('.')[0]
+ client = gethostbyaddr(peer)[0]
except herror:
return Element("error", type='host resolution error')
for data in xml.findall(".//probe-data"):
@@ -133,7 +133,7 @@ class BcfgServer(Server):
# Versioned stats to prevent tied client/server upgrade
if e.get('version') >= '2.0':
try:
- client = gethostbyaddr(peer)[0].split('.')[0]
+ client = gethostbyaddr(peer)[0]
except herror:
return Element("error", type='host resolution error')