Skip to content

Commit a46eea5

Browse files
committed
Merge branch 'release/v3.1'
2 parents 5ab86eb + a60ce66 commit a46eea5

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

automation/automation.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
#!/usr/bin/env python3
12

2-
# Version 1.1
3-
# Author: Chih-Chen Kao
3+
4+
__author__ = "Chih-Chen Kao"
5+
__copyright__ = "Copyright (C) 2018, Chih-Chen Kao"
6+
__license__ = "GPL"
47

58
import telnetlib
69
import sys
@@ -28,7 +31,7 @@
2831
default_mac_query_cmd = b"sh mac address\n"
2932

3033

31-
date_str = datetime.datetime.now().strftime ("%Y%m%d")
34+
date_str = datetime.datetime.now().strftime("%Y%m%d%H")
3235

3336
with open("hostlist.txt") as host_data :
3437

@@ -88,7 +91,7 @@
8891
# process the data
8992

9093

91-
print("[INFO] : Matching Data from Raw Data")
94+
print("[INFO] : Matching Regex from Raw Data")
9295
matching_list = re.findall(data_regex, read_data)
9396
#print(matching_list)
9497

format/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
#!/usr/bin/env python3
12

2-
# Version 1.1
33
# Author: Chih-Chen Kao
44

55
import re

0 commit comments

Comments
 (0)