Don't save the logger to a var we only use once

This commit is contained in:
Anders Ingemann 2013-12-15 19:23:56 +01:00
parent bc8038729a
commit abe6a5fef3

View file

@ -52,7 +52,9 @@ class AddSSHKeyGeneration(Task):
else:
install['generate-ssh-hostkeys'] = os.path.join(init_scripts_dir, 'generate-ssh-hostkeys')
except CalledProcessError:
pass
import logging
logging.getLogger(__name__).warn('The OpenSSH server has not been installed, '
'not installing SSH host key generation script.')
class RemoveHWClock(Task):