Skip to content

Commit e4bbbe0

Browse files
author
Christian Rebischke
committed
measure date only once in the script
Signed-off-by: Christian Rebischke <[email protected]>
1 parent f44e1be commit e4bbbe0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controller.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
import os.path
1313

1414
API_URL = 'https://app.vagrantup.com/api/v1/box/archlinux/archlinux'
15-
THIS_MONTH = int(datetime.datetime.now().strftime("%m"))
15+
NOW = datetime.datetime.now()
16+
THIS_MONTH = int(NOW.strftime("%m"))
1617
LEN_RELEASES = 2
1718
CWD = '/srv/arch-boxes/arch-boxes'
18-
ISO_PATH = '/srv/ftp/iso/latest/archlinux-' + datetime.datetime.now().strftime(
19+
ISO_PATH = '/srv/ftp/iso/latest/archlinux-' + NOW.strftime(
1920
"%Y.%m") + '.01-x86_64.iso'
2021
ISO_CHECKSUM_PATH = '/srv/ftp/iso/latest/sha1sums.txt'
2122
PACKER_CMD_TEMPLATE = [

0 commit comments

Comments
 (0)