saltstack-formulas / openvpn-formula

Setup and configure openvpn server and client.
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
35 stars 114 forks source link

fix(network manager networks): make python code verson agnostic #157

Open alxwr opened 1 year ago

alxwr commented 1 year ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

Support Python 3 in the connection.jinja template.

Pillar / config required to test the proposed changes

Debug log showing how the proposed changes work

----------                                                                                                                                 
          ID: /etc/NetworkManager/system-connections/server_udp                                                                              
    Function: file.managed                                                                                                                 
      Result: True                                                                                                                         
     Comment: File /etc/NetworkManager/system-connections/server_udp updated                                                                 
     Started: 18:19:17.635143                                                                                                              
    Duration: 508.104 ms                                                                                                                   
     Changes:                                                                                                                              
              ----------                                                                                                                   
              diff:                                                                                                                        
                  New file
----------
          ID: network_manager_connection_reload
    Function: cmd.run
        Name: /usr/bin/nmcli connection reload
      Result: True
     Comment: Command "/usr/bin/nmcli connection reload" run
     Started: 18:19:26.420264
    Duration: 51.624 ms
     Changes:   
              ----------
              pid:
                  2271118
              retcode:
                  0
              stderr:
              stdout:

Documentation checklist

Testing checklist

Additional context