mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
chore: replace immutable hash with container spec comparison
This commit is contained in:
@@ -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