def proxmox_fsdata(jobparams=None): if jobparams is not None: fsname = jobparams.get('FileSet', None) optionlist = None if fsname is not None: (inclist, exclist, optionlist) = getDIRFSparams(name=fsname) vmsexclude = jobparams['Objsexclude'] if len(vmsexclude) > 0: vmsexclude = ({'value': vmsexclude}, ) else: vmsexclude = None if jobparams['Allobjs'] == 'True': vmslist = ['All Guest VMs'] vmsicon = 'fa-cubes' else: vmsicon = 'fa-cube' vmsinclude = jobparams['Objsinclude'] if len(vmsinclude) > 0: vmsinclude = vmsinclude.split(":") else: vmsinclude = [] vmslist = [] for vm in vmsinclude: vmslist.append(vm) return { 'VMSicon': vmsicon, 'VMS': vmslist, 'Exclude': vmsexclude, 'Options': optionlist, } else: return None
def files_fsdata(jobparams=None): if jobparams is not None: fsname = jobparams.get('FileSet', None) if fsname is not None: (inclist, exclist, optionlist) = getDIRFSparams(name=fsname) return { 'Include': inclist, 'Exclude': exclist, 'Options': optionlist, } else: return None
def catalog_fsdata(): (inclist, exclist, optionlist) = getDIRFSparams(name='fs-catalog-backup') return { 'FS': catalogfs_getall(), 'Options': optionlist, }