SUSE / salt-netapi-client

Java bindings for the Salt API
MIT License
85 stars 95 forks source link

Feat: add pkg.list_patterns call #291

Closed mbologna closed 3 years ago

mbologna commented 3 years ago

This PR adds support for calling pkg.list_patterns: https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.zypperpkg.html#module-salt.modules.zypperpkg

The list_patterns is only implemented by the zypperpkg "child" execution module of pkg: this is why the call returns an Optional map.

JUnit tests added.