seantis / suitable

@@ -144,7 +144,8 @@
Loading
144 144
145 145
        """
146 146
        # Create Inventory
147 -
        self.inventory = Inventory(options.get('connection', None), hosts=servers)
147 +
        self.inventory = Inventory(options.get('connection', None),
148 +
                                   hosts=servers)
148 149
149 150
        # Set connection to smart (if not set by user)
150 151
        if 'connection' not in options:

@@ -18,8 +18,6 @@
Loading
18 18
from suitable.common import log
19 19
from suitable.runner_results import RunnerResults
20 20
21 -
22 -
23 21
try:
24 22
    from ansible import context
25 23
except ImportError:
@@ -257,7 +255,6 @@
Loading
257 255
                task_queue_manager.cleanup()
258 256
259 257
            if set_global_context:
260 -
261 258
                # Ansible 2.8 introduces a global context which persists
262 259
                # during the lifetime of the process - for Suitable this
263 260
                # singleton/cache needs to be cleared after each call

@@ -4,12 +4,12 @@
Loading
4 4
class Inventory(dict):
5 5
6 6
    def __init__(self, ansible_connection=None, hosts=None):
7 -
        super().__init__()
7 +
        super(Inventory, self).__init__()
8 8
        self.ansible_connection = ansible_connection
9 9
        if hosts:
10 10
            self.add_hosts(hosts)
11 11
12 -
    def add_host(self, server: str, host_variables: dict):
12 +
    def add_host(self, server, host_variables):
13 13
        self[server] = {}
14 14
15 15
        # [ipv6]:port
@@ -45,4 +45,5 @@
Loading
45 45
            for server, host_variables in servers.items():
46 46
                self.add_host(server, host_variables)
47 47
        else:
48 -
            raise TypeError("Not a valid type. Only String, List, Set or Dict is allowed!")
48 +
            raise TypeError("Not a valid type. Only String, List, Set, Tuple "
49 +
                            "or Dict is allowed!")

@@ -1,5 +1,6 @@
Loading
1 1
from ansible.plugins.callback import CallbackBase
2 2
3 +
3 4
class SilentCallbackModule(CallbackBase):
4 5
    """ A callback module that does not print anything, but keeps tabs
5 6
    on what's happening in an Ansible play.
Files Coverage
suitable 93.91%
Project Totals (11 files) 93.91%
122.12
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-ansible27

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading