mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-07 21:59:15 +00:00
chore: replace immutable hash with container spec comparison
This commit is contained in:
1 parent
64f6a4f3d3
commit
0e80f2e5b2
7 files changed
+116
-122
No files matched your search
@@ -21,7 +21,7 @@ func (cli *Client) CreateContainer(
|
||||
) (container.CreateResponse, error) {
|
||||
var resp container.CreateResponse
|
||||
|
||||
spec.ApplyDefaults()
|
||||
spec = spec.SetDefaults()
|
||||
if err := spec.Validate(); err != nil {
|
||||
return resp, fmt.Errorf("invalid service spec: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user