Skip to content

Commit

Permalink
fixing static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
hiaga committed Dec 22, 2020
1 parent 08d065d commit d6f0cb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class GetAzureRmRecoveryServicesVaultProperties : RSBackupVaultCmdletBase
{
[Parameter(Mandatory = false, ValueFromPipeline = false, Position = 1, HelpMessage = ParamHelpMsgs.Encryption.EncryptionSettings)]
[ValidateNotNullOrEmpty]
public SwitchParameter EncryptionSettings;
public SwitchParameter EncryptionSetting;

public override void ExecuteCmdlet()
{
Expand All @@ -39,10 +39,10 @@ public override void ExecuteCmdlet()
string vaultName = resourceIdentifier.ResourceName;
string resourceGroupName = resourceIdentifier.ResourceGroupName;

if(EncryptionSettings.IsPresent)
if(EncryptionSetting.IsPresent)
{
BackupResourceEncryptionConfigResource vaultEncryptionSettings = ServiceClientAdapter.GetVaultEncryptionConfig(resourceGroupName, vaultName);
WriteObject(vaultEncryptionSettings);
BackupResourceEncryptionConfigResource vaultEncryptionSetting = ServiceClientAdapter.GetVaultEncryptionConfig(resourceGroupName, vaultName);
WriteObject(vaultEncryptionSetting);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
"Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.dll","Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.GetAzureRmRecoveryServicesVaultProperties","Get-AzRecoveryServicesVaultProperty","0","1020","The cmdlet 'Get-AzRecoveryServicesVaultProperty' no longer has output type 'Microsoft.Azure.Management.RecoveryServices.Backup.Models.BackupResourceVaultConfig'.","Make cmdlet 'Get-AzRecoveryServicesVaultProperty' return type 'Microsoft.Azure.Management.RecoveryServices.Backup.Models.BackupResourceVaultConfig'."

0 comments on commit d6f0cb9

Please sign in to comment.