-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow unnamed Firewall Policy #75
Comments
Hi, Yes, for the moment, the policy name is required... You can try to set mandatory to false here https://github.com/FortiPower/PowerFGT/blob/master/PowerFGT/Public/cmdb/firewall/policy.ps1#L65 Remove check test https://github.com/FortiPower/PowerFGT/blob/master/PowerFGT/Public/cmdb/firewall/policy.ps1#L115 and comment add the name of on policy https://github.com/FortiPower/PowerFGT/blob/master/PowerFGT/Public/cmdb/firewall/policy.ps1#L158 it will look for next release to add support of unnamed policy |
it is working ? |
Well, I am a beginning Powershell scripter, I don't know how to modify an existing module (I installed your Module through psgallery) and use it locally. For now I fix it by using a counter and using that in the name. |
Ok, you need to modified directly module : (Replace MyUser by your user) |
Thanks, for me the location is /root/.local/share/powershell/Modules (running my code inside of a VSCode Powershell container). Modifying the files you said worked, but has to be redone after a container rebuild in this setup. |
Yes... i will make change for next release |
Reopen because i found a issue with policy return... and i need to write Tests for this case... |
Hi, could you please make the firewall policy name not required? Or let me know how to disable the name property from being required
The text was updated successfully, but these errors were encountered: