diff --git a/VMBackup/main/hostsnapshotter.py b/VMBackup/main/hostsnapshotter.py index d67d95897..69f8b76a6 100644 --- a/VMBackup/main/hostsnapshotter.py +++ b/VMBackup/main/hostsnapshotter.py @@ -68,6 +68,7 @@ def snapshotall(self, paras, freezer, g_fsfreeze_on, taskId): headers = {} headers['Backup'] = 'true' headers['Content-type'] = 'application/json' + headers['UserAgent'] = 'VMSnapshot' settings = [] if (paras.includeLunList != None and paras.includeLunList.count != 0): diskIds = paras.includeLunList @@ -141,6 +142,8 @@ def pre_snapshot(self, paras, taskId, fetch_disk_details = False): headers = {} headers['Backup'] = 'true' headers['Content-type'] = 'application/json' + headers['UserAgent'] = 'VMSnapshot' + # if the vm is ade enabled and if the diskEncryptionSettings are not yet populated, then we need to fetch the disk details # or when the fetch_disk_details flag is set to true if(fetch_disk_details == True or (paras.isVMADEEnabled == True and not paras.diskEncryptionSettings)):