def mount_volume(volume, mnt_base, configfile=None):
 fileutils.ensure_tree(mnt_base)
 command = ['mount.quobyte', volume, mnt_base]
 if configfile:
  command.extend(['-c', configfile])
 LOG.debug('Mounting volume %s at mount point %s ...', volume, mnt_base)
 utils.execute(check_exit_code=[0, 4], *command)
 LOG.info(_LI('Mounted volume: %s'), volume)

def mount_volume ( volume , mnt_base , configfile = None ) : fileutils . ensure_tree ( mnt_base ) command = [ 'mount.quobyte' , volume , mnt_base ] if configfile : command . extend ( [ '-c' , configfile ] ) LOG . debug ( 'Mounting volume %s at mount point %s ...' , volume , mnt_base ) utils . execute ( check_exit_code = [ 0 , 4 ] , * command ) LOG . info ( _LI ( 'Mounted volume: %s' ) , volume )
wraps execute calls for mounting a quobyte volume .