This commit is contained in:
Cayo Puigdefabregas 2022-03-30 10:21:33 +02:00
parent fb29a0b07f
commit d70810e88b
2 changed files with 0 additions and 4 deletions

View File

@ -236,7 +236,6 @@ class UploadSnapshotForm(FlaskForm):
def save(self, commit=True): def save(self, commit=True):
if any([x == 'Error' for x in self.result.values()]): if any([x == 'Error' for x in self.result.values()]):
return return
# import pdb; pdb.set_trace()
self.sync = Sync() self.sync = Sync()
schema = SnapshotSchema() schema = SnapshotSchema()
schema_lite = Snapshot_lite() schema_lite = Snapshot_lite()

View File

@ -227,7 +227,6 @@ class ParseSnapshot:
def get_data_storage(self): def get_data_storage(self):
for sm in self.smart: for sm in self.smart:
# import pdb; pdb.set_trace()
model = sm.get('model_name') model = sm.get('model_name')
manufacturer = None manufacturer = None
if len(model.split(" ")) == 2: if len(model.split(" ")) == 2:
@ -341,7 +340,6 @@ class ParseSnapshotLsHw:
"endTime": snapshot["timestamp"], "endTime": snapshot["timestamp"],
"elapsed": 1, "elapsed": 1,
} }
# import pdb; pdb.set_trace()
def parse_hwinfo(self): def parse_hwinfo(self):
hw_blocks = self.hwinfo_raw.split("\n\n") hw_blocks = self.hwinfo_raw.split("\n\n")
@ -417,7 +415,6 @@ class ParseSnapshotLsHw:
def get_data_storage(self): def get_data_storage(self):
for sm in self.smart: for sm in self.smart:
# import pdb; pdb.set_trace()
model = sm.get('model_name') model = sm.get('model_name')
manufacturer = None manufacturer = None
if len(model.split(" ")) > 1: if len(model.split(" ")) > 1: