Skip to content

Commit

Permalink
[linstor] Add "resource activate/deactivate" to allowed commands in c…
Browse files Browse the repository at this point in the history
…lient-wrapper.sh script (#118)

Signed-off-by: Nikolay Demchuk <[email protected]>
  • Loading branch information
NikolayDemchuk authored May 30, 2024
1 parent b9d92c8 commit da29fe0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/linstor-server/client-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ if [[ $(echo "${valid_subcommands_list[@]}" | fgrep -w -- $1) ]]; then
allowed=true
fi

if [[ "$2" == "activate" || "$2" == "deactivate" ]]; then
allowed=true
fi

if [[ "$2" == "set-property" ]] && [[ "$4" == "AutoplaceTarget" ]]; then
allowed=true
fi
Expand Down

0 comments on commit da29fe0

Please sign in to comment.