Skip to content

Commit 1230d48

Browse files
fix: complete erroneous removeprefix call
Signed-off-by: Mathieu Labourier <[email protected]>
1 parent e74624d commit 1230d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/linstorvolumemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def is_controller_uri_valid(uri):
235235

236236
if not uri:
237237
return False
238-
address = uri.removeprefix
238+
address = uri.removeprefix("linstor://")
239239
session = util.timeout_call(10, util.get_localAPI_session)
240240
for host_ref, host_record in session.xenapi.host.get_all():
241241
if host_record.get('address', '') != address:

0 commit comments

Comments
 (0)