From: Michael Fritch Date: Wed, 13 May 2020 23:14:35 +0000 (-0600) Subject: pybind/ceph_volume_client: logger.warn() -> logger.warning() X-Git-Tag: wip-pdonnell-testing-20200918.022351~1110^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fe4c7fd7471bf724c4a1f027580d9bae3ddc24eb;p=ceph-ci.git pybind/ceph_volume_client: logger.warn() -> logger.warning() logger.warn() is the same as logger.warning(), but was removed in py3.3 Signed-off-by: Michael Fritch --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 68bdc514159..8bf89c62799 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -1175,7 +1175,7 @@ class CephFSVolumeClient(object): volume_path_str = str(volume_path) if (auth_meta is None) or (not auth_meta['volumes']): - log.warn("deauthorized called for already-removed auth" + log.warning("deauthorized called for already-removed auth" "ID '{auth_id}' for volume ID '{volume}'".format( auth_id=auth_id, volume=volume_path.volume_id )) @@ -1184,7 +1184,7 @@ class CephFSVolumeClient(object): return if volume_path_str not in auth_meta['volumes']: - log.warn("deauthorized called for already-removed auth" + log.warning("deauthorized called for already-removed auth" "ID '{auth_id}' for volume ID '{volume}'".format( auth_id=auth_id, volume=volume_path.volume_id )) @@ -1215,7 +1215,7 @@ class CephFSVolumeClient(object): vol_meta = self._volume_metadata_get(volume_path) if (vol_meta is None) or (auth_id not in vol_meta['auths']): - log.warn("deauthorized called for already-removed auth" + log.warning("deauthorized called for already-removed auth" "ID '{auth_id}' for volume ID '{volume}'".format( auth_id=auth_id, volume=volume_path.volume_id )) @@ -1389,7 +1389,7 @@ class CephFSVolumeClient(object): try: self.fs.rmdir(self._snapshot_path(dir_path, snapshot_name)) except cephfs.ObjectNotFound: - log.warn("Snapshot was already gone: {0}".format(snapshot_name)) + log.warning("Snapshot was already gone: {0}".format(snapshot_name)) def create_snapshot_volume(self, volume_path, snapshot_name, mode=0o755): self._snapshot_create(self._get_path(volume_path), snapshot_name, mode) @@ -1512,6 +1512,6 @@ class CephFSVolumeClient(object): try: ioctx.remove_object(object_name) except rados.ObjectNotFound: - log.warn("Object '{0}' was already removed".format(object_name)) + log.warning("Object '{0}' was already removed".format(object_name)) finally: ioctx.close()