Skip to content

Commit 0a10055

Browse files
stormiglehmann
andcommitted
Apply Gaëtan's review suggestion
Co-authored-by: Gaëtan Lehmann <glehmann@users.noreply.github.com> Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
1 parent a1a6f99 commit 0a10055

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/storage/linstor/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
from dataclasses import dataclass
99

1010
import lib.commands as commands
11-
from data import LINSTOR_REDUNDANCY
11+
try:
12+
from data import LINSTOR_REDUNDANCY
13+
except ImportError:
14+
LINSTOR_REDUNDANCY = 2
1215

1316
# explicit import for package-scope fixtures
1417
from pkgfixtures import pool_with_saved_yum_state

0 commit comments

Comments
 (0)