We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad0ce2e commit eec2b4dCopy full SHA for eec2b4d
ads/model/datascience_model.py
@@ -1616,7 +1616,7 @@ def list_obj_versions_unpaginated():
1616
{
1617
"namespace": namespace,
1618
"bucketName": bucket,
1619
- "prefix": prefix,
+ "prefix": "" if not prefix else prefix,
1620
"objects": objects,
1621
}
1622
)
@@ -1677,7 +1677,7 @@ def findModelIdx():
1677
model["namespace"],
1678
model["bucketName"],
1679
(model["prefix"] if ("prefix" in model) else None),
1680
- ) == (namespace, bucket, prefix):
+ ) == (namespace, bucket, "" if not prefix else prefix):
1681
return idx
1682
return -1
1683
0 commit comments