diff --git a/VMBackup/main/common.py b/VMBackup/main/common.py index be8593515..14c5df0cb 100644 --- a/VMBackup/main/common.py +++ b/VMBackup/main/common.py @@ -46,6 +46,7 @@ class CommonVariables: useMccfForLad = 'useMccfForLad' useMccfToFetchDsasForAllDisks = 'useMccfToFetchDsasForAllDisks' enableSnapshotExtensionPolling = "EnableSnapshotExtensionPolling" + isVmmdBlobIncluded = 'isVmmdBlobIncluded' key = 'Key' value = 'Value' snapshotTtlHeader = 'x-ms-snapshot-ttl-expiry-hours' diff --git a/VMBackup/main/parameterparser.py b/VMBackup/main/parameterparser.py index 5b9d95eb5..aa2e4e750 100644 --- a/VMBackup/main/parameterparser.py +++ b/VMBackup/main/parameterparser.py @@ -35,7 +35,8 @@ def __init__(self, protected_settings, public_settings, backup_logger): self.snapshotTaskToken = '' self.includedDisks = None self.dynamicConfigsFromCRP = None - self.wellKnownSettingFlags = {CommonVariables.isSnapshotTtlEnabled: False, CommonVariables.useMccfToFetchDsasForAllDisks: False, CommonVariables.useMccfForLad: False, CommonVariables.enableSnapshotExtensionPolling: False} + self.wellKnownSettingFlags = {CommonVariables.isSnapshotTtlEnabled: False, CommonVariables.useMccfToFetchDsasForAllDisks: False, + CommonVariables.useMccfForLad: False, CommonVariables.enableSnapshotExtensionPolling: False, CommonVariables.isVmmdBlobIncluded : False} settingKeysMapping= {} settingKeysMapping[CommonVariables.isSnapshotTtlEnabled.lower()] = CommonVariables.isSnapshotTtlEnabled settingKeysMapping[CommonVariables.useMccfToFetchDsasForAllDisks.lower()] = CommonVariables.useMccfToFetchDsasForAllDisks @@ -126,4 +127,8 @@ def __init__(self, protected_settings, public_settings, backup_logger): except Exception as e: errorMsg = "Exception occurred while populating settings, Exception: %s" % (str(e)) backup_logger.log(errorMsg, True) + + if(CommonVariables.isVmmdBlobIncluded in self.includedDisks.keys() and self.includedDisks[CommonVariables.isVmmdBlobIncluded] == True): + self.wellKnownSettingFlags[CommonVariables.isVmmdBlobIncluded] = True + backup_logger.log("settings to be sent " + str(self.wellKnownSettingFlags), True) \ No newline at end of file