Describe the issueSet-PASSafe -NumberOfDaysRetention parameter does not accept zero as a value, while Add-PASSafe -NumberOfDaysRetention does. In swagger it is possible to set an existing safe to NumberOfDaysRetention.
Set-PASSafe -SafeName MySafe -NumberOfDaysRetention 0 <-- this will result in an error
Expected behavior
Zero should be accepted for Set-PASSafe -NumberOfDaysRetention parameter
Screenshots & Console Output
If applicable, add screenshots and/or console output to help explain your problem.
PS C:\Scripts\PAM> Add-PASSafe -SafeName MySafe -NumberOfDaysRetention 0
SafeName ManagingCPM NumberOfDaysRetention NumberOfVersionsRetention Description
-------- ----------- --------------------- ------------------------- -----------
MySafe 0
PS C:\Scripts\PAM> Set-PASSafe -SafeName MySafe -NumberOfDaysRetention 1
SafeName ManagingCPM NumberOfDaysRetention NumberOfVersionsRetention Description
-------- ----------- --------------------- ------------------------- -----------
MySafe 1
PS C:\Scripts\PAM> Set-PASSafe -SafeName MySafe -NumberOfDaysRetention 0
Set-PASSafe : Cannot validate argument on parameter 'NumberOfDaysRetention'. The 0 argument is less than the minimum allowed range of 1. Supply an argument that is greater than or equal to 1 and then try the command again.
Your Environment
Include relevant details about your environment
Describe the issue
Set-PASSafe -NumberOfDaysRetention
parameter does not accept zero as a value, whileAdd-PASSafe -NumberOfDaysRetention
does. In swagger it is possible to set an existing safe to NumberOfDaysRetention.To Reproduce Steps to reproduce the behavior:
Expected behavior Zero should be accepted for
Set-PASSafe -NumberOfDaysRetention
parameterScreenshots & Console Output If applicable, add screenshots and/or console output to help explain your problem.
Your Environment Include relevant details about your environment
Additional context In Add-PASSafe:
While in Set-PASSafe: