(*args, **kwargs)
return processutils.trycmd(*args, **kwargs)
Convenience wrapper around oslo's trycmd() method.
Convenience wrapper around oslo's trycmd() method.
Convenience wrapper around oslo s trycmd () method .
def trycmd(*args, **kwargs):
    """Convenience wrapper around oslo's trycmd() method."""
    if kwargs.get('run_as_root') and 'root_helper' not in kwargs:
        kwargs['root_helper'] = _get_root_helper()
    return processutils.trycmd(*args, **kwargs)
def trycmd ( * args , * * kwargs ) : if kwargs . get ( 'run_as_root' ) and 'root_helper' not in kwargs : kwargs [ 'root_helper' ] = _get_root_helper ( ) return processutils . trycmd ( * args , * * kwargs )