Setup logging for fedimg cronjob.
This commit is contained in:
parent
7e48000e90
commit
e1edce6717
1 changed files with 3 additions and 0 deletions
|
@ -4,12 +4,15 @@
|
||||||
# NOTE this is taken from the github repo
|
# NOTE this is taken from the github repo
|
||||||
# https://github.com/fedora-infra/fedimg/blob/develop/bin/kill_ec2_nodes.py
|
# https://github.com/fedora-infra/fedimg/blob/develop/bin/kill_ec2_nodes.py
|
||||||
|
|
||||||
|
import logging
|
||||||
|
logging.basicConfig()
|
||||||
|
|
||||||
from libcloud.compute.types import Provider
|
from libcloud.compute.types import Provider
|
||||||
from libcloud.compute.providers import get_driver
|
from libcloud.compute.providers import get_driver
|
||||||
import datetime
|
import datetime
|
||||||
import fedimg
|
import fedimg
|
||||||
|
|
||||||
|
|
||||||
EC2_ACCESS_ID = fedimg.AWS_ACCESS_ID
|
EC2_ACCESS_ID = fedimg.AWS_ACCESS_ID
|
||||||
EC2_SECRET_KEY = fedimg.AWS_SECRET_KEY
|
EC2_SECRET_KEY = fedimg.AWS_SECRET_KEY
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue