'Run a yum command with all necessary options for non-interactive use.
"-d 0 -e 0 -y"'

def yum_command(self, cmd):

    yum_opts = ['-d', '0', '-e', '0', '-y']
    cmd = ((('yum    ' + '    '.join(yum_opts)) + '    ') + cmd)
    self.ssh.execute(cmd)
