Add hypen to the prefix/suffix of container name if not provided
If suffix is provided without hypen at the start, prefix hypen
to the suffix, to support creation of image names like
openstack-nova-compute-docker, where docker is the suffix.
Also if prefix is provided without hypen at the end, add hypen
at the end of the prefix.
Closes-Bug: #1709777
Reviewed: https:/ /review. openstack. org/492385 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=7f79a55edc3 e2dea51e65047af 1708eb4d0745e3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7f79a55edc3e2de a51e65047af1708 eb4d0745e3
Author: Saravanan KR <email address hidden>
Date: Thu Aug 10 11:40:48 2017 +0530
Add hypen to the prefix/suffix of container name if not provided
If suffix is provided without hypen at the start, prefix hypen nova-compute- docker, where docker is the suffix.
to the suffix, to support creation of image names like
openstack-
Also if prefix is provided without hypen at the end, add hypen
at the end of the prefix.
Closes-Bug: #1709777
Change-Id: I2330a6f35a12bf 140da8b52114cb2 0844efc5554