Replace deprecated pylint disable-msg with disable
The "disable-msg" flag has been deprecated for pylint and "disable"
should now be used. This replaces the two instances we had in the
code base where we were disabling pylint errors.
@@ -185,7 +185,7 @@ class API(base.Base):
def create_volume_snapshot(self, context, volume_id, create_info):
nova = novaclient(context, admin_endpoint=True, privileged_user=True)
- # pylint: disable-msg=E1101
+ # pylint: disable=E1101
nova.assisted_volume_snapshots.create(
volume_id,
create_info=create_info)
@@ -193,7 +193,7 @@ class API(base.Base):
def delete_volume_snapshot(self, context, snapshot_id, delete_info):
nova = novaclient(context, admin_endpoint=True, privileged_user=True)
- # pylint: disable-msg=E1101
+ # pylint: disable=E1101
nova.assisted_volume_snapshots.delete(
snapshot_id,
delete_info=delete_info)
