cbrichford / docker-ipsec

Apache License 2.0
12 stars 3 forks source link

Syntax error #2

Closed BraveSirRobin closed 6 years ago

BraveSirRobin commented 8 years ago

When running on RHEL7:

>>> import docker_ipsec
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/robin/python/devpkve/lib/python2.7/site-packages/docker_ipsec/__init__.py", line 1, in <module>
    from docker_ipsec.common import (IPSecInfo, DockerInfo, getInterfaceNameForIndex, installIPTablesRule, removeIPTablesRules, ipsec)
  File "/home/robin/python/devpkve/lib/python2.7/site-packages/docker_ipsec/common.py", line 153
    def ipsec(*args, verbose=False):

The args to the ipsec function are in the wrong order.

cbrichford commented 6 years ago

@BraveSirRobin python 2.X is not supported. Try python3.