Skip to content

Commit

Permalink
Add check to ensure jq can be found in $PATH when enabling switchdev …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
wangyd1988 committed Dec 5, 2023
1 parent 44f4043 commit 69ea6a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ contents:
exit
fi
which jq
append_to_file(){
content="$1"
file_name="$2"
Expand Down
2 changes: 1 addition & 1 deletion controllers/sriovnetworknodepolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (r *SriovNetworkNodePolicyReconciler) syncSriovNetworkNodeState(np *sriovne
}
}
newVersion.Spec.DpConfigVersion = cksum
if equality.Semantic.DeepDerivative(newVersion.Spec, found.Spec) {
if equality.Semantic.DeepEqual(newVersion.Spec, found.Spec) {
logger.Info("SriovNetworkNodeState did not change, not updating")
return nil
}
Expand Down

0 comments on commit 69ea6a2

Please sign in to comment.