Skip to content

Commit 96ae21e

Browse files
committed
add python-ecsclient dependency, url resource default, ecs.py env var defaults
1 parent 868bffe commit 96ae21e

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

coldfront/config/plugins/ecs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
from coldfront.config.base import INSTALLED_APPS
44

55
INSTALLED_APPS += [ 'coldfront.plugins.ecs' ]
6-
ECS_USER = ENV.str('ECS_USER', '')
7-
ECS_PASS = ENV.str('ECS_PASS', '')
6+
7+
ECS_USER = ENV.str('ECS_USER', default='')
8+
ECS_PASS = ENV.str('ECS_PASS', default='')
9+
ECS_CLIENT_VERSION = ENV.str('ECS_CLIENT_VERSION', default='3')
810

911
LOGGING['handlers']['ecs'] = {
1012
'class': 'logging.handlers.TimedRotatingFileHandler',

coldfront/core/resource/management/commands/add_resource_defaults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def handle(self, *args, **options):
3333
('GPU Count', 'Int'),
3434
('Features', 'Text'),
3535
('slurm_integration', 'Text'),
36+
('url', 'Text'),
3637
# UBCCR
3738
('Core Count', 'Int'),
3839
# ('expiry_time', 'Int'),

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ idna==3.7
2929
protobuf==6.30.0
3030
pyparsing==3.1.2
3131
python-dateutil==2.9.0.post0
32+
python-ecsclient==1.1.12
3233
python-memcached==1.62
3334
pytz==2024.1
3435
redis==5.0.0

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
'logging_tree==1.9',
7676
'mysqlclient==2.2.0',
7777
'pandas==2.2.1',
78+
'python-ecsclient==1.1.12',
7879
'reportlab==4.0.5',
7980
'xhtml2pdf==0.2.15',
8081
'XlsxWriter',

0 commit comments

Comments
 (0)