Skip to content

Commit 1d0873e

Browse files
authored
fix: Falco rule version comparison (#137)
Signed-off-by: kaizhe <[email protected]>
1 parent 31be6e0 commit 1d0873e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcclient/_secure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def load_default_falco_rules_files(self, save_dir):
361361
with open(cpath, 'r') as content_file:
362362
try:
363363
required_engine_version = int(os.path.basename(vpath))
364-
if vpath < 0:
364+
if int(os.path.basename(vpath)) < 0:
365365
return [False, "Variant directory {} must be a positive number".format(vpath)]
366366
fobj["variants"].append({
367367
"requiredEngineVersion": required_engine_version,

0 commit comments

Comments
 (0)