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.

Change-Id: Id9f223c95cd8563ffcf545ab8c8dee0bf0354ecd
This commit is contained in:
Sean McGinnis 2017-01-16 13:54:26 -06:00
parent 5df117b618
commit 53f2e4cca4
1 changed files with 2 additions and 2 deletions

View File

@ -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)