File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ HOST_DEFAULT_PASSWORD = ""
12
12
# that the tests will create or import, such as VMs and SRs.
13
13
# Default value: [your login/user]
14
14
# OBJECTS_NAME_PREFIX = "[TEST]"
15
+ OBJECTS_NAME_PREFIX = None
15
16
16
17
# Override settings for specific hosts
17
18
# skip_xo_config allows to not touch XO's configuration regarding the host
Original file line number Diff line number Diff line change @@ -26,10 +26,13 @@ def vm_image(vm_key):
26
26
return url
27
27
28
28
def prefix_object_name (label ):
29
+ name_prefix = None
29
30
try :
30
31
from data import OBJECTS_NAME_PREFIX
31
32
name_prefix = OBJECTS_NAME_PREFIX
32
33
except ImportError :
34
+ pass
35
+ if name_prefix is None :
33
36
name_prefix = f"[{ getpass .getuser ()} ]"
34
37
return f"{ name_prefix } { label } "
35
38
You can’t perform that action at this time.
0 commit comments