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

BsdLicenseVtm.run()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 5
rs 9.4285
c 2
b 0
f 0
1
#! /usr/bin/python
2
3
from st2actions.runners.pythonrunner import Action
4
from lib.vadc import Bsd
5
6
7
class BsdLicenseVtm(Action):
8
9
    def run(self, vtm, password, address, bw, fp):
10
11
        bsd = Bsd(self.config, self.logger)
12
        result = bsd.addVtm(vtm, password, address, bw, fp)
13
        return result
14