Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct flake8 errors #70

Merged
merged 1 commit into from
May 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions library/dokku_certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def to_bool(v):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def subprocess_check_output(command, split="\n"):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_consul.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def to_bool(v):
Expand Down
10 changes: 5 additions & 5 deletions library/dokku_docker_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def subprocess_check_output(command, split="\n"):
Expand All @@ -83,7 +83,7 @@ def subprocess_check_output(command, split="\n"):

def dokku_docker_options(data):
options = {"build": [], "deploy": [], "run": []}
command = "dokku --quiet docker-options {0}".format(data["app"], data["phase"])
command = "dokku --quiet docker-options {0}".format(data["app"])
output, error = subprocess_check_output(command)
if error is None:
_type = "build"
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def subprocess_check_output(command, split="\n"):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_ecr.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def to_bool(v):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_git_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def to_bool(v):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_global_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def to_bool(v):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def subprocess_check_output(command, split="\n"):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def subprocess_check_output(command, split="\n"):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def to_bool(v):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_service_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"""


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def dokku_apps_exists(app):
Expand Down
8 changes: 4 additions & 4 deletions library/dokku_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def get_uid(user):
return uid


def force_list(l):
if isinstance(l, list):
return l
return list(l)
def force_list(var):
if isinstance(var, list):
return var
return list(var)


def subprocess_check_output(command, split="\n"):
Expand Down