Completed
Push — master ( a3e8d9...aa8f16 )
by Lakshmi
02:09
created

QualysBaseAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %
Metric Value
wmc 1
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 8 1
1
from qualysapi.connector import QGConnector
2
from parsers import ResultSets
3
from st2actions.runners.pythonrunner import Action
4
5
__all__ = [
6
    'QualysBaseAction',
7
]
8
9
10
class QualysBaseAction(Action):
11
    def __init__(self, config):
12
        super(QualysBaseAction, self).__init__(config)
13
        self.connection = QGConnector(
14
            (config['username'],
15
             config['password']),
16
            config['hostname']
17
        )
18
        self.resultsets = ResultSets()
19