The container name in the provided input data can contains the string "-container" that is not needed. So we should remove it.
In the comment, rather explain why there is need to remove the suffix.
Also, it'll be safer to check the pkg_namespace == 'container' beforehand as you mentioned yesterday.
pkg_namespace == 'container'
rebased onto 8b8e04f546c75b35867e516071b9b51e4a0305b8
rebased. I'm not at comments... but it should be better
+1
Commit dd190cd8 fixes this pull-request
Pull-Request has been merged by lholecek
The container name in the provided input data can contains the
string "-container" that is not needed. So we should remove it.