File tree Expand file tree Collapse file tree 1 file changed +10
-22
lines changed
src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers Expand file tree Collapse file tree 1 file changed +10
-22
lines changed Original file line number Diff line number Diff line change @@ -40,31 +40,19 @@ internal class ContainerHelpers
40
40
41
41
internal static AzureBackupContainerType GetContainerType ( string customerType )
42
42
{
43
- CustomerType type = ( CustomerType ) Enum . Parse ( typeof ( CustomerType ) , customerType ) ;
44
-
45
43
AzureBackupContainerType containerType = 0 ;
46
44
47
- switch ( type )
45
+ if ( string . Compare ( customerType , CustomerType . DPM . ToString ( ) ) == 0 )
48
46
{
49
- case CustomerType . DPM :
50
- containerType = AzureBackupContainerType . SCDPM ;
51
- break ;
52
- case CustomerType . InMage :
53
- break ;
54
- case CustomerType . Invalid :
55
- break ;
56
- case CustomerType . ManagedContainer :
57
- break ;
58
- case CustomerType . OBS :
59
- containerType = AzureBackupContainerType . Windows ;
60
- break ;
61
- case CustomerType . SBS :
62
- containerType = AzureBackupContainerType . Windows ;
63
- break ;
64
- case CustomerType . SqlPaaS :
65
- break ;
66
- default :
67
- break ;
47
+ containerType = AzureBackupContainerType . SCDPM ;
48
+ }
49
+ else if ( string . Compare ( customerType , CustomerType . OBS . ToString ( ) ) == 0 )
50
+ {
51
+ containerType = AzureBackupContainerType . Windows ;
52
+ }
53
+ else if ( string . Compare ( customerType , CustomerType . SBS . ToString ( ) ) == 0 )
54
+ {
55
+ containerType = AzureBackupContainerType . Windows ;
68
56
}
69
57
70
58
return containerType ;
You can’t perform that action at this time.
0 commit comments