Fix pylint issue exposed by yamllint 1.12.1

When yamllint 1.12.1 was released Oct 17, 2018 it
was pickier about the str.strip syntax.

This change fixes pylint.
Verified that strip('/') and strip('//') work the same

Change-Id: I82864134289cdabb642876bc2c867d0a35428b96
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
Closes-Bug: 1802329
This commit is contained in:
Al Bailey 2018-11-08 09:40:32 -06:00
parent ded5fe6cbc
commit 13088d262b
1 changed files with 1 additions and 1 deletions

View File

@ -1402,7 +1402,7 @@ def upgrade_controller_simplex(backup_file):
'controller-0')
hieradata_tmpdir = os.path.join(staging_dir,
constants.HIERADATA_PERMDIR.strip('//'))
constants.HIERADATA_PERMDIR.strip('/'))
print_log_info("Applying Bootstrap manifest...")
cutils.apply_manifest(controller_0_address,
sysinv_constants.CONTROLLER,