The parameter --name was previously added to allow overriding
the container's name, but it wasn't fully plumbed. Enable the
--name feature by fully connecting it down to the Container
class.
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
self.container = container
else:
# Use the default container settings
- self.container = Container(name=consts.DEFAULT_CONTAINER_NAME,
+ self.container = Container(name=args.name,
stop_timeout=args.timeout,
arch=None,
distro=args.distro,
help='name of the container',
required=False,
type=str,
- default=None
+ default=consts.DEFAULT_CONTAINER_NAME
)
parser.add_argument(
'-d', '--distro',