File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
from dcim .models import RackRole
2
- from utilities .forms import COLOR_CHOICES
2
+ from utilities .choices import ColorChoices
3
3
4
4
from startup_script_utils import load_yaml
5
5
import sys
13
13
if 'color' in params :
14
14
color = params .pop ('color' )
15
15
16
- for color_tpl in COLOR_CHOICES :
16
+ for color_tpl in ColorChoices :
17
17
if color in color_tpl :
18
18
params ['color' ] = color_tpl [0 ]
19
19
Original file line number Diff line number Diff line change 1
1
from dcim .models import DeviceRole
2
- from utilities .forms import COLOR_CHOICES
2
+ from utilities .choices import ColorChoices
3
+
3
4
from startup_script_utils import load_yaml
4
5
import sys
5
6
13
14
if 'color' in params :
14
15
color = params .pop ('color' )
15
16
16
- for color_tpl in COLOR_CHOICES :
17
+ for color_tpl in ColorChoices :
17
18
if color in color_tpl :
18
19
params ['color' ] = color_tpl [0 ]
19
20
You can’t perform that action at this time.
0 commit comments