From 19aa2d99d88e404ae0bd6dbb2f6f2b2d41ee936a Mon Sep 17 00:00:00 2001 From: mpgn Date: Wed, 12 Jul 2023 09:29:00 +0200 Subject: [PATCH] Update comp_desc.py fix indent --- cme/modules/comp_desc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cme/modules/comp_desc.py b/cme/modules/comp_desc.py index d39a51ce..d7470882 100644 --- a/cme/modules/comp_desc.py +++ b/cme/modules/comp_desc.py @@ -75,11 +75,11 @@ class CMEModule: context.log.success('Found the following computers: ') for answer in answers: try: - IP = socket.gethostbyname(answer[0]) - context.log.highlight(u'{} ({}) ({})'.format(answer[0],answer[1],IP)) - context.log.debug('IP found') + IP = socket.gethostbyname(answer[0]) + context.log.highlight(u'{} ({}) ({})'.format(answer[0],answer[1],IP)) + context.log.debug('IP found') except socket.gaierror as e: - context.log.debug('Missing IP') - context.log.highlight(u'{} ({}) ({})'.format(answer[0],answer[1],"No IP Found")) + context.log.debug('Missing IP') + context.log.highlight(u'{} ({}) ({})'.format(answer[0],answer[1],"No IP Found")) else: context.log.success('Unable to find any computers with the description "' + self.DESC + '"')