Module Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore ListLoad NameLoad Str NameLoad Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return CompareEq Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore ListLoad NameLoad Str Str Str NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A os N/A re oslo_config cfg oslo_log log oslo_logging cloudbaseinit exception N/A opts N/A N/A N/A cfg StrOpt mtools_path default None help Path to "mtools" program suite, used for interacting with VFAT filesystems N/A CONF N/A cfg CONF N/A N/A N/A CONF register_opts opts N/A CONFIG_DRIVE_LABEL config-2 N/A LOG N/A N/A oslo_logging getLogger __name__ N/A VOLUME_LABEL_REGEX N/A N/A re compile Volume label is (.*?)$ _check_mtools_path N/A N/A N/A N/A N/A N/A N/A CONF mtools_path N/A N/A N/A N/A exception CloudbaseInitException "mtools_path" needs to be provided in order to access VFAT drives N/A is_vfat_drive N/A N/A osutils drive_path N/A N/A N/A Check if the given drive contains a VFAT filesystem. N/A N/A _check_mtools_path N/A mlabel N/A N/A N/A os path join N/A CONF mtools_path mlabel.exe N/A args N/A mlabel -i drive_path -s N/A N/A out err exit_code N/A N/A osutils execute_process args shell False N/A exit_code N/A N/A N/A N/A LOG debug Could not retrieve label for VFAT drive path %r drive_path N/A N/A N/A LOG debug mlabel failed with error %r err N/A False N/A N/A N/A LOG debug Obtained label information for drive %r: %r drive_path out N/A out N/A N/A N/A N/A out decode strip N/A match N/A N/A VOLUME_LABEL_REGEX search out N/A N/A N/A N/A match group 1 CONFIG_DRIVE_LABEL N/A copy_from_vfat_drive N/A N/A osutils drive_path target_path N/A N/A N/A Copy everything from the given VFAT drive into the given target. N/A N/A _check_mtools_path N/A cwd N/A N/A os getcwd N/A N/A N/A N/A N/A os chdir target_path N/A mcopy N/A N/A N/A os path join N/A CONF mtools_path mcopy.exe N/A args N/A mcopy -s -n -i drive_path ::/ . N/A N/A N/A osutils execute_process args shell False N/A N/A N/A N/A os chdir cwd N/A