Fix FormatApplicationName 22/6822/1
authorAdam Israel <adam.israel@canonical.com>
Wed, 31 Oct 2018 20:59:51 +0000 (13:59 -0700)
committerAdam Israel <adam.israel@canonical.com>
Wed, 31 Oct 2018 20:59:51 +0000 (13:59 -0700)
Remove the @staticmethod decorator, which introduced some unintended
behavior.

Signed-off-by: Adam Israel <adam.israel@canonical.com>
n2vc/vnf.py

index a60f36c..f2d0a1e 100644 (file)
@@ -926,7 +926,6 @@ class N2VC:
 
         return config
 
-    @staticmethod
     def FormatApplicationName(self, *args):
         """
         Generate a Juju-compatible Application name
@@ -942,7 +941,6 @@ class N2VC:
 
             FormatApplicationName("ping_pong_ns", "ping_vnf", "a")
         """
-
         appname = ""
         for c in "-".join(list(args)):
             if c.isdigit():