Giter VIP home page Giter VIP logo

Comments (7)

alagoutte avatar alagoutte commented on July 19, 2024 1

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

from powerfgt.

alagoutte avatar alagoutte commented on July 19, 2024

it is working ?

from powerfgt.

chrisvanmeer avatar chrisvanmeer commented on July 19, 2024

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.

from powerfgt.

alagoutte avatar alagoutte commented on July 19, 2024

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 :
C:\Users\MyUser\Documents\WindowsPowerShell\Modules

(Replace MyUser by your user)

from powerfgt.

chrisvanmeer avatar chrisvanmeer commented on July 19, 2024

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.

from powerfgt.

alagoutte avatar alagoutte commented on July 19, 2024

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...
the container is public ?

i will make change for next release

from powerfgt.

alagoutte avatar alagoutte commented on July 19, 2024

Reopen because i found a issue with policy return...

and i need to write Tests for this case...

from powerfgt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.