@@ -42,16 +42,16 @@ public static bool IsContainerUnregistrationRequired(CmdletModel.ContainerType c
4242
4343 public static string GetContainerNameFromItem ( ItemBase item )
4444 {
45+ // container name format for SQL and AFS
46+ // StorageContainer;Storage;rgname;afsname
47+ // VMAppContainer;Compute;RGName;vmanme
4548 return item . ContainerName ;
4649 }
4750
4851 public static JobBase UnregisterContainer ( ItemBase item , string vaultName , string resourceGroupName , ServiceClientAdapter serviceClientAdapter , RSBackupVaultCmdletBase rsBackupVaultCmdletBase )
4952 {
5053 string containerName = GetContainerNameFromItem ( item ) ;
51- // chck: verify if this is the correct format for SQL and AFS workloads
52- // StorageContainer;Storage;rgname;afsname
53- // VMAppContainer;Compute;RGName;vmanme
54-
54+
5555 Logger . Instance . WriteDebug ( "Unregistering Azure Storage container: " + containerName ) ;
5656 try
5757 {
@@ -158,7 +158,7 @@ public static ProtectableItemBase GetMatchingProtectableItem(ItemBase item, stri
158158 Logger . Instance . WriteDebug ( "proItemName: " + ( ( AzureWorkloadProtectableItem ) itemModel ) . Name +
159159 ", proItemContainerName: " + ( ( AzureWorkloadProtectableItem ) itemModel ) . ContainerName ) ;
160160
161- return ( string . Compare ( ( ( AzureWorkloadProtectableItem ) itemModel ) . Name , item . Name , true ) == 0
161+ return ( string . Compare ( ( ( AzureWorkloadProtectableItem ) itemModel ) . Name , item . Name , true ) == 0
162162 && string . Compare ( ( ( AzureWorkloadProtectableItem ) itemModel ) . ContainerName , item . ContainerName , true ) == 0 ) ;
163163 } ) . ToList ( ) ;
164164 }
@@ -168,7 +168,7 @@ public static ProtectableItemBase GetMatchingProtectableItem(ItemBase item, stri
168168 return null ;
169169 }
170170
171- if ( itemModels != null && itemModels . Count > 0 )
171+ if ( itemModels != null && itemModels . Count > 0 )
172172 {
173173 return itemModels [ 0 ] ;
174174 }
0 commit comments