mirror of https://github.com/CISOfy/lynis.git
Extended ReportDetails function
This commit is contained in:
parent
bebf3d0bd5
commit
722703da31
|
@ -1633,14 +1633,18 @@
|
|||
shift
|
||||
TEST_FIELD=$1
|
||||
;;
|
||||
--key)
|
||||
shift
|
||||
TEST_KEY=$1
|
||||
;;
|
||||
--preferredvalue|--preferred-value)
|
||||
shift
|
||||
TEST_PREFERRED_VALUE=$1
|
||||
;;
|
||||
# Other details
|
||||
--other)
|
||||
shift
|
||||
TEST_OTHER=$1
|
||||
--service)
|
||||
shift
|
||||
TEST_SERVICE=$1
|
||||
;;
|
||||
--test)
|
||||
shift
|
||||
TEST_ID=$1
|
||||
|
@ -1657,7 +1661,7 @@
|
|||
esac
|
||||
shift # Go to next parameter
|
||||
done
|
||||
Report "details[]=${TEST_ID}|desc=${TEST_DESCRIPTION}:field=${TEST_FIELD}:key=${TEST_KEY}:prefval=${TEST_PREFERRED_VALUE}:value=${TEST_VALUE}|"
|
||||
Report "details[]=${TEST_ID}|service=${TEST_SERVICE}|desc=${TEST_DESCRIPTION}:field=${TEST_FIELD}:prefval=${TEST_PREFERRED_VALUE}:value=${TEST_VALUE}:other=${TEST_OTHER}|"
|
||||
}
|
||||
|
||||
# Log exceptions
|
||||
|
|
Loading…
Reference in New Issue