Browse Source

Properly use normalized tags for chia upgrade strategy

sonicaj 4 years ago
parent
commit
6d433dc97b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      charts/chia/upgrade_strategy
  2. 1 1
      test/chia/upgrade_strategy

+ 1 - 1
charts/chia/upgrade_strategy

@@ -8,7 +8,7 @@ from catalog_update.upgrade_strategy import semantic_versioning
 def newer_mapping(image_tags):
     key = list(image_tags.keys())[0]
     tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]}
-    version = semantic_versioning(image_tags[key])
+    version = semantic_versioning(tags)
     if not version:
         return {}
 

+ 1 - 1
test/chia/upgrade_strategy

@@ -8,7 +8,7 @@ from catalog_update.upgrade_strategy import semantic_versioning
 def newer_mapping(image_tags):
     key = list(image_tags.keys())[0]
     tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]}
-    version = semantic_versioning(image_tags[key])
+    version = semantic_versioning(tags)
     if not version:
         return {}