Skip to content

Commit

Permalink
undo formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ottobackwards committed Nov 5, 2020
1 parent 977b034 commit 8892f54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nipyapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def filter_obj(obj, value, key, greedy=True):
if greedy:
out = [
i for i in obj if value in
reduce(operator.getitem, key_lookup, i.to_dict())
reduce(operator.getitem, key_lookup, i.to_dict())
]
else:
out = [
Expand Down Expand Up @@ -330,7 +330,6 @@ class DockerContainer:
"""
Helper class for Docker container automation without using Ansible
"""

def __init__(self, name=None, image_name=None, image_tag=None, ports=None,
env=None, volumes=None, test_url=None, endpoint=None):
self.name = name
Expand All @@ -356,10 +355,12 @@ def get_test_url_status(self):
def set_container(self, container):
self.container = container


def get_container(self):
return self.container



def start_docker_containers(docker_containers, network_name='demo'):
"""
Deploys a list of DockerContainer's on a given network
Expand Down

0 comments on commit 8892f54

Please sign in to comment.