DOC fix deprecation in CD
Merge pull request #3260 from larsmans/cd-deprecation

[MRG] fix faulty deprecation in CD