mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
Compare commits
4 Commits
63df2ac7f1
...
4cb65e846d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4cb65e846d | ||
|
|
066ef03eb9 | ||
|
|
54d230183c | ||
|
|
66e092f0ff |
@ -282,7 +282,7 @@ WHERE networks.id = ? AND networks.state = ?
|
||||
|
||||
configs := map[string]map[string]string{}
|
||||
for _, node := range nodes {
|
||||
config, err := query.SelectConfig(ctx, c.tx, "networks_config", "node_id=?", node.ID)
|
||||
config, err := query.SelectConfig(ctx, c.tx, "networks_config", "network_id=? AND node_id=?", networkID, node.ID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -301,7 +301,7 @@ var commandTimeouts = map[string]time.Duration{
|
||||
"object-add": heavyCommandTimeout,
|
||||
"stop": heavyCommandTimeout,
|
||||
"system_reset": heavyCommandTimeout,
|
||||
"query-migrate": 5 * time.Second,
|
||||
"query-migrate": heavyCommandTimeout,
|
||||
"screendump": 10 * time.Second,
|
||||
}
|
||||
|
||||
|
||||
@ -2765,6 +2765,11 @@ func (o *NB) SetChassisGroupPriority(ctx context.Context, haChassisGroupName OVN
|
||||
operations = append(operations, updateOps...)
|
||||
}
|
||||
|
||||
// Skip the transaction if nothing changed.
|
||||
if len(operations) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Apply the changes.
|
||||
resp, err := o.client.Transact(ctx, operations...)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user