Fix pep8 errors

This commit is contained in:
Mark Goddard 2017-08-25 18:00:12 +00:00
parent 6580c08140
commit 10de93dc61
2 changed files with 6 additions and 8 deletions

View File

@ -13,7 +13,6 @@
# under the License. # under the License.
import json import json
import platform
import sys import sys
from cliff.command import Command from cliff.command import Command
@ -383,8 +382,8 @@ class OvercloudIntrospectionDataSave(KayobeAnsibleMixin, VaultMixin, Command):
# Defaults for these are applied in the playbook. # Defaults for these are applied in the playbook.
group.add_argument("--output-dir", type=str, group.add_argument("--output-dir", type=str,
help="Path to directory in which to save " help="Path to directory in which to save "
"introspection data. Default: " "introspection data. Default: "
"$PWD/overcloud-introspection-data") "$PWD/overcloud-introspection-data")
group.add_argument("--output-format", type=str, group.add_argument("--output-format", type=str,
help="Format in which to save output data. One of " help="Format in which to save output data. One of "
"JSON or YAML. Default: JSON", "JSON or YAML. Default: JSON",
@ -399,7 +398,8 @@ class OvercloudIntrospectionDataSave(KayobeAnsibleMixin, VaultMixin, Command):
if parsed_args.output_format: if parsed_args.output_format:
extra_vars['output_format'] = parsed_args.output_format extra_vars['output_format'] = parsed_args.output_format
playbooks = _build_playbook_list("overcloud-introspection-data-save") 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): class OvercloudBIOSRAIDConfigure(KayobeAnsibleMixin, VaultMixin, Command):

View File

@ -71,10 +71,8 @@ class TestCase(unittest.TestCase):
"-lt", "-lt",
] ]
parsed_args = parser.parse_args(args) parsed_args = parser.parse_args(args)
ansible.run_playbooks( ansible.run_playbooks(parsed_args, ["playbook1.yml", "playbook2.yml"],
parsed_args, verbose_level=2)
["playbook1.yml", "playbook2.yml"],
verbose_level=2)
expected_cmd = [ expected_cmd = [
"ansible-playbook", "ansible-playbook",
"-vv", "-vv",