Skip to content

Commit 0b907cd

Browse files
committed
Making param BackupType case insensitive
1 parent 09407d4 commit 0b907cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup/Library/AzureBackupCmdletHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public BackupSchedule FillBackupSchedule(string backupType, string scheduleType,
9393
{
9494
var backupSchedule = new BackupSchedule();
9595

96-
backupSchedule.BackupType = backupType;
96+
backupSchedule.BackupType = Enum.Parse(typeof(BackupType), backupType, true).ToString();
9797
backupSchedule.RetentionPolicy = FillRetentionPolicy(retentionType, retentionDuration);
9898

9999
scheduleType = FillScheduleType(scheduleType, scheduleRunDays);

0 commit comments

Comments
 (0)