Lines 1-12
Link Here
|
1 |
import time |
1 |
import time |
2 |
import hashlib |
2 |
import hashlib |
3 |
import re |
3 |
import re |
4 |
import ruamel.yaml as yaml |
|
|
5 |
from ruamel.yaml.comments import CommentedMap as OrderedDict |
4 |
from ruamel.yaml.comments import CommentedMap as OrderedDict |
6 |
|
5 |
|
7 |
import whipper |
6 |
import whipper |
8 |
|
7 |
|
9 |
from whipper.common import common |
8 |
from whipper.common import common |
|
|
9 |
from whipper.common.yaml import YAML |
10 |
from whipper.result import result |
10 |
from whipper.result import result |
11 |
|
11 |
|
12 |
|
12 |
|
Lines 148-158
def logRip(self, ripResult, epoch):
Link Here
|
148 |
data["EOF"] = "End of status report" |
148 |
data["EOF"] = "End of status report" |
149 |
riplog["Conclusive status report"] = data |
149 |
riplog["Conclusive status report"] = data |
150 |
|
150 |
|
|
|
151 |
yaml = YAML( |
152 |
typ="rt", |
153 |
pure=True |
154 |
) |
151 |
riplog = yaml.dump( |
155 |
riplog = yaml.dump( |
152 |
riplog, |
156 |
riplog |
153 |
default_flow_style=False, |
|
|
154 |
width=4000, |
155 |
Dumper=yaml.RoundTripDumper |
156 |
) |
157 |
) |
157 |
# Add a newline after the "Log creation date" line |
158 |
# Add a newline after the "Log creation date" line |
158 |
riplog = re.sub( |
159 |
riplog = re.sub( |