Completed
Pull Request — master (#583)
by
unknown
03:35
created

VtmEnableSslOffload.run()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
#! /usr/bin/python
2
3
from st2actions.runners.pythonrunner import Action
4
from lib.vadc import Vtm
5
6
7
class VtmEnableSslOffload(Action):
8
9
    def run(self, vtm, name, cert, xproto, headers):
10
11
        vtm = Vtm(self.config, self.logger, vtm)
12
        vtm.enableSSLOffload(name, cert, True, xproto, headers)
13