Merge "Do not failed update if no container registry is set"
This commit is contained in:
@@ -103,9 +103,13 @@ class UpdateOvercloud(command.Command):
|
||||
with open(os.path.abspath(container_registry)) as content:
|
||||
registry = yaml.load(content.read())
|
||||
else:
|
||||
raise exceptions.InvalidConfiguration(
|
||||
"You need to provide a container registry file in order "
|
||||
"to update your current containers deployed.")
|
||||
self.log.warning(
|
||||
"You have not provided a container registry file. Note "
|
||||
"that none of the containers on your environement will be "
|
||||
"updated. If you want to update your container you have "
|
||||
"to re-run this command and provide the registry file "
|
||||
"with: --container-registry-file option.")
|
||||
registry = None
|
||||
# Execute minor update
|
||||
package_update.update(clients, container=stack_name,
|
||||
container_registry=registry
|
||||
|
||||
Reference in New Issue
Block a user