X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fbaremetal-operator%2Fbaremetal-operator.sh;h=4aa3effab7dffec44b058a431ad885d466279ee8;hb=b13f5643b2c17bca79fce39612f8c8c87158632a;hp=35e79a19fd92c84aedbb58c91b60de02cc0585a5;hpb=718425df1f99dd7f93cb60bbe9eb01cab9e47f2a;p=icn.git diff --git a/deploy/baremetal-operator/baremetal-operator.sh b/deploy/baremetal-operator/baremetal-operator.sh index 35e79a1..4aa3eff 100755 --- a/deploy/baremetal-operator/baremetal-operator.sh +++ b/deploy/baremetal-operator/baremetal-operator.sh @@ -9,7 +9,9 @@ source $LIBDIR/common.sh trap err_exit ERR function err_exit { - kubectl get all -n baremetal-operator-system + if command -v kubectl; then + kubectl get all -n baremetal-operator-system + fi } # This may be used to update the in-place Bare Metal Operator YAML