def update_firmware_nfs_or_cifs(filename, share, host=None, admin_username=None, admin_password=None):
 if os.path.exists(filename):
  return _update_firmware('update -f {0} -l {1}'.format(filename, share), host=None, admin_username=None, admin_password=None)
 else:
  raise CommandExecutionError('Unable to find firmware file {0}'.format(filename))

def update_firmware_nfs_or_cifs ( filename , share , host = None , admin_username = None , admin_password = None ) : if os . path . exists ( filename ) : return _update_firmware ( 'update -f {0} -l {1}' . format ( filename , share ) , host = None , admin_username = None , admin_password = None ) else : raise CommandExecutionError ( 'Unable to find firmware file {0}' . format ( filename ) )
executes the following for cifs .