Completed
Pull Request — master (#408)
by Anthony
01:49
created

BaseAction.get_connection()   A

Complexity

Conditions 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 10
rs 9.4285
1
from st2actions.runners.pythonrunner import Action
2
3
4
class BaseAction(Action):
5
    def __init__(self, config):
6
        super(BaseAction, self).__init__(config)
7
        self.config = config
8
9
    def get_connection(self):
10
        """
11
        Get a connection to the Kubernetes IO API Service
12
        """
13
        user = self.config['user']
14
        password = self.config['password']
15
        base_api = self.config['kubernetes_api_url']
16
17
        # TODO : Instantiate API connection and return
18
        return None