mtakaki / cachet-url-monitor

URL monitor plugin for cachethq.io
MIT License
125 stars 49 forks source link

Release-0.6.4 doesn't load config file anymore #81

Closed chris-str-cst closed 4 years ago

chris-str-cst commented 4 years ago
cachet-monitor_1  | Traceback (most recent call last):
cachet-monitor_1  |   File "./cachet_url_monitor/scheduler.py", line 144, in <module>
cachet-monitor_1  |     token = os.environ.get('CACHET_TOKEN') or config_data['cachet']['token']
cachet-monitor_1  | NameError: name 'os' is not defined
cachet-monitor:
    # https://github.com/mtakaki/cachet-url-monitor/blob/master/config.yml
    image: mtakaki/cachet-url-monitor:release-0.6.4
    volumes: 
      - "${PWD}/config.yml:/usr/src/app/config/config.yml:ro"

It works with release-0.6.3

mtakaki commented 4 years ago

Fixed by #82. Thank you so much for reporting and fixing it, @chris-str-cst