[Cookbook][Test]fix sample code
bug #3665 [Cookbook][Test] fix sample code (inalgnu)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Test] fix sample code

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all

Commits
-------

370d614 [Cookbook][Test]fix sample code
Merge remote-tracking branch 'origin/2.3' into 2.3