Consist terminate_connection function signature
Clean up the "force=False" in function signature for terminate_connection
since it already accept **kwargs.
Thus make all function signature for terminate_connection consist to
def terminate_connection(self, volume, connector, **kwargs)
Fixes: bug #1190419
Change-Id: I8765cb8f2aa3cfbb49ff57ae034b148aee35a8c4
This commit is contained in:
@@ -159,7 +159,7 @@ class VolumeDriver(object):
|
||||
"""Allow connection to connector and return connection info."""
|
||||
raise NotImplementedError()
|
||||
|
||||
def terminate_connection(self, volume, connector, force=False, **kwargs):
|
||||
def terminate_connection(self, volume, connector, **kwargs):
|
||||
"""Disallow connection from connector"""
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ class ScalityDriver(driver.VolumeDriver):
|
||||
}
|
||||
}
|
||||
|
||||
def terminate_connection(self, volume, connector, force=False, **kwargs):
|
||||
def terminate_connection(self, volume, connector, **kwargs):
|
||||
"""Disallow connection from connector."""
|
||||
pass
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ class XenAPINFSDriver(driver.VolumeDriver):
|
||||
)
|
||||
)
|
||||
|
||||
def terminate_connection(self, volume, connector, force=False, **kwargs):
|
||||
def terminate_connection(self, volume, connector, **kwargs):
|
||||
pass
|
||||
|
||||
def check_for_setup_error(self):
|
||||
|
||||
Reference in New Issue
Block a user