From 84b347c50e830c5d0ce72bc6fe2b80b97dba8c61 Mon Sep 17 00:00:00 2001 From: Francesco Di Nucci Date: Tue, 12 Nov 2024 11:13:37 +0100 Subject: [PATCH] fix: replace deprecated foreman-rake task `foreman-rake foreman_openscap:bulk_upload:default` returns "DEPRECATION WARNING: Uploading scap contents using rake task is deprecated and will be removed in a future version. Please use API or CLI.", replace with Hammer CLI command. --- plugins/foreman_openscap/1.0/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/foreman_openscap/1.0/index.md b/plugins/foreman_openscap/1.0/index.md index ef6b558d79..b7bca89255 100644 --- a/plugins/foreman_openscap/1.0/index.md +++ b/plugins/foreman_openscap/1.0/index.md @@ -186,7 +186,7 @@ __Creating default SCAP content__ * Install smart_proxy_openscap on one (or more) of your proxies * Refresh features of that proxy (so it will register with OpenSCAP feature on the Foreman) -* from terminal run `foreman-rake foreman_openscap:bulk_upload:default` +* from terminal run `hammer scap-content bulk-upload --type default` This will search for scap-security-guide SCAP contents and create SCAP content on the Foreman.