don't use os.path.join() on a single path component

Signed-off-by: Rishabh Dave <ridave@redhat.com>
pull/3716/head
Rishabh Dave 2019-03-11 15:52:42 +05:30 committed by mergify[bot]
parent 62abe7068a
commit ba949acab7
2 changed files with 2 additions and 4 deletions

View File

@ -209,8 +209,7 @@ def container_exec(binary, container_image):
'-v', '/etc/ceph:/etc/ceph:z',
'-v', '/var/lib/ceph/:/var/lib/ceph/:z',
'-v', '/var/log/ceph/:/var/log/ceph/:z',
os.path.join('--entrypoint=' + binary),
container_image]
'--entrypoint=' + binary, container_image]
return command_exec

View File

@ -196,8 +196,7 @@ def container_exec(binary, container_image):
'-v', '/run/lvm/:/run/lvm/',
'-v', '/var/lib/ceph/:/var/lib/ceph/:z',
'-v', '/var/log/ceph/:/var/log/ceph/:z',
os.path.join('--entrypoint=' + binary),
container_image]
'--entrypoint=' + binary, container_image]
return command_exec