pass
except ImportError:
msg = ("SleekXMPP is not installed. Without this library "
- " you will be not able to use OMF Resources "
- " if you want to install SleekXmpp : \n"
+ "you will be not able to use OMF Resources "
+ "if you want to install SleekXmpp: \n"
" git clone -b develop git://github.com/fritzy/SleekXMPP.git \n"
" cd SleekXMPP \n"
" sudo python setup.py install\n")
logger = Logger("BaseOMFClient")
- logger.debug(msg)
+ logger.warning(msg)
class BaseOMFClient(object):
pass
if sudo:
command = "sudo %s" % command
- elif user:
- command = "su %s ; %s " % (user, command)
+
+ # XXX: Doing 'su user' blocks waiting for a password on stdin
+ #elif user:
+ # command = "su %s ; %s " % (user, command)
proc = subprocess.Popen(command,
shell = True,