Skip to content

Commit

Permalink
Fix Quantity schema
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Dec 12, 2023
1 parent 8e127e3 commit e086ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acto/input/known_schemas/resource_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, schema_obj: BaseSchema) -> None:
# hack: this Quantity type is anyof schema for Golang operators, but string schema for Rust operators
if isinstance(schema_obj, AnyOfSchema):
super().__init__(schema_obj)
if isinstance(schema_obj, StringSchema):
elif isinstance(schema_obj, StringSchema):
BaseSchema.__init__(self, schema_obj.path, schema_obj.raw_schema)
str_schema = K8sStringSchema(schema_obj)
self.possibilities = [str_schema]
Expand Down

0 comments on commit e086ffd

Please sign in to comment.