- execute "apt-key-#{params[:key]}" do
- command "/usr/bin/apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys #{params[:key]}"
- not_if "/usr/bin/apt-key list | /bin/fgrep -q #{params[:key]}"
+ if params[:key]
+ execute "apt-key-#{params[:key]}" do
+ command "/usr/bin/apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys #{params[:key]}"
+ not_if "/usr/bin/apt-key list | /bin/fgrep -q #{params[:key]}"
+ end