Skip to content

Commit 3911361

Browse files
committed
Fix pep8 and remove non-working scp_opts
The scp_opts don't seem to be able to quiet the scp: error for the certificate.
1 parent 3873dd5 commit 3911361

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

zaza/openstack/charm_tests/ceph/tests.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ def test_ceph_encryption(self):
272272
source = '/tmp/dmcrypt-keys/*'
273273
zaza_model.scp_from_unit(unit_name=unit_name,
274274
source=source,
275-
destination=tempdir,
276-
scp_opts='-p')
275+
destination=tempdir)
277276
for elt in listdir(tempdir):
278277
file_path = '/'.join([tempdir, elt])
279278
if path.isfile(file_path):

zaza/openstack/charm_tests/manila/tests.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def _restart_share_instance(self):
353353
return False
354354

355355
def _wait_for_ceph_healthy(self):
356-
"""Wait until the ceph health is healthy"""
356+
"""Wait until the ceph health is healthy."""
357357
logging.info("Waiting for ceph to be healthy")
358358
for attempt in tenacity.Retrying(
359359
wait=tenacity.wait_fixed(5),
@@ -365,8 +365,7 @@ def _wait_for_ceph_healthy(self):
365365
self.assertEqual(
366366
zaza.model.run_on_leader(
367367
"ceph-mon", "sudo ceph health")["Code"],
368-
"0"
369-
)
368+
"0")
370369
logging.info("...Ceph is healthy")
371370

372371
def test_manila_share(self):

zaza/openstack/utilities/openstack.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2323,9 +2323,7 @@ def get_remote_ca_cert_file(application, model_name=None):
23232323
model.scp_from_unit(
23242324
unit,
23252325
cert_file,
2326-
_tmp_ca.name,
2327-
scp_opts='-q',
2328-
)
2326+
_tmp_ca.name)
23292327
except JujuError:
23302328
continue
23312329
# ensure that the path to put the local cacert in actually exists.

0 commit comments

Comments
 (0)