Skip to content

Commit c7b0bc3

Browse files
DXE-988 Couchbase - VDB failed to enable (#36)
1 parent ae873e9 commit c7b0bc3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plugin_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id: 18f4ff11-b758-4bf2-9a37-719a22f5a4b8
22
name: sc:couchbase
3-
externalVersion: "1.1.2"
4-
buildNumber: 1.1.2.0
3+
externalVersion: "1.1.4"
4+
buildNumber: 1.1.4.0
55
language: PYTHON27
66
hostTypes:
77
- UNIX

src/controller/helper_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def check_server_is_used(connection, path):
424424
match = re.search(fs_re, i)
425425
if match is not None:
426426
groups = match.groups()
427-
if groups[2] == 'nfs':
427+
if groups[2] and str(groups[2]).startswith('nfs'):
428428
if path == groups[1]:
429429
# this is our mount point - skip it
430430
ret = Status.ACTIVE

src/plugin_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def linked_mount_specification(staged_source, repository):
8080

8181
@plugin.linked.pre_snapshot()
8282
def linked_pre_snapshot(staged_source, repository, source_config, optional_snapshot_parameters):
83-
if int(optional_snapshot_parameters.resync) == 1:
83+
if optional_snapshot_parameters and int(optional_snapshot_parameters.resync) == 1:
8484
linked.resync(staged_source, repository, source_config, staged_source.parameters)
8585
else:
8686
linked.pre_snapshot(staged_source, repository, source_config, staged_source.parameters)

0 commit comments

Comments
 (0)