From 10de93dc6141fa0ca03fd601e4a02b7794a7a350 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Fri, 25 Aug 2017 18:00:12 +0000 Subject: [PATCH] Fix pep8 errors --- kayobe/cli/commands.py | 8 ++++---- kayobe/tests/unit/test_ansible.py | 6 ++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/kayobe/cli/commands.py b/kayobe/cli/commands.py index 52d5fbce8..f75ea5b98 100644 --- a/kayobe/cli/commands.py +++ b/kayobe/cli/commands.py @@ -13,7 +13,6 @@ # under the License. import json -import platform import sys from cliff.command import Command @@ -383,8 +382,8 @@ class OvercloudIntrospectionDataSave(KayobeAnsibleMixin, VaultMixin, Command): # Defaults for these are applied in the playbook. group.add_argument("--output-dir", type=str, help="Path to directory in which to save " - "introspection data. Default: " - "$PWD/overcloud-introspection-data") + "introspection data. Default: " + "$PWD/overcloud-introspection-data") group.add_argument("--output-format", type=str, help="Format in which to save output data. One of " "JSON or YAML. Default: JSON", @@ -399,7 +398,8 @@ class OvercloudIntrospectionDataSave(KayobeAnsibleMixin, VaultMixin, Command): if parsed_args.output_format: extra_vars['output_format'] = parsed_args.output_format playbooks = _build_playbook_list("overcloud-introspection-data-save") - self.run_kayobe_playbooks(parsed_args, playbooks, extra_vars=extra_vars) + self.run_kayobe_playbooks(parsed_args, playbooks, + extra_vars=extra_vars) class OvercloudBIOSRAIDConfigure(KayobeAnsibleMixin, VaultMixin, Command): diff --git a/kayobe/tests/unit/test_ansible.py b/kayobe/tests/unit/test_ansible.py index 1113cb84d..ac9e21ab8 100644 --- a/kayobe/tests/unit/test_ansible.py +++ b/kayobe/tests/unit/test_ansible.py @@ -71,10 +71,8 @@ class TestCase(unittest.TestCase): "-lt", ] parsed_args = parser.parse_args(args) - ansible.run_playbooks( - parsed_args, - ["playbook1.yml", "playbook2.yml"], - verbose_level=2) + ansible.run_playbooks(parsed_args, ["playbook1.yml", "playbook2.yml"], + verbose_level=2) expected_cmd = [ "ansible-playbook", "-vv",