Merge "Remove the remaining of the removed option"

This commit is contained in:
Zuul 2018-05-22 20:03:06 +00:00 committed by Gerrit Code Review
commit 8ede37e8b1
2 changed files with 3 additions and 11 deletions

View File

@ -5769,10 +5769,9 @@ servers_multiple_create_name:
description: |
A base name for creating unique names during multiple create. A
unique string will be appended to the end of this base name for
every server created. The templete is defined in
``multi_instance_display_name_template`` option in the configuration file.
The server names become ``{name}-1``, ``{name}-2``, ``{name}-3``, ...
by default.
every server created.
The server names become ``{name}-1``, ``{name}-2``, ``{name}-3``,
etc.
service:
description: |
Object representing a compute service.

View File

@ -1411,13 +1411,6 @@ class API(base.Base):
instance.display_name = display_name
if hostname is None and num_instances == 1:
# NOTE(russellb) In the multi-instance case, we're going to
# overwrite the display_name using the
# multi_instance_display_name_template. We need the default
# display_name set so that it can be used in the template, though.
# Only set the hostname here if we're only creating one instance.
# Otherwise, it will be built after the template based
# display_name.
hostname = display_name
default_hostname = self._default_host_name(instance.uuid)
instance.hostname = utils.sanitize_hostname(hostname,