Completed
Pull Request — master (#583)
by
unknown
10:22 queued 04:17
created

BsdSetVtmBandwidth   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 6
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
#! /usr/bin/python
2
3
from st2actions.runners.pythonrunner import Action
4
from lib.vadc import Bsd
5
6
7
class BsdSetVtmBandwidth(Action):
8
9
    def run(self, vtm, bw):
10
11
        bsd = Bsd(self.config, self.logger)
12
        bsd.setBandwidth(vtm, bw)
13