dataloop-ai / dtlpy

Python SDK and CLI for Dataloop Platform
Apache License 2.0
16 stars 15 forks source link

Convert slots json to PackageSlot object #38

Closed oruen closed 1 year ago

oruen commented 1 year ago

When deploying faas having UI slots, I've run into an error. I use dlp deploy command to deploy faas. Package information is defined in json file. It appears packages push function doesn't convert parsed json slot definition into PackageSlot object, while _validate_slots function expects PackageSlot. This PR fixes the deployment for me.