Set sample_default for 'host' option

This prevents build system hostnames from being
written into sample conf files.

Change-Id: I8c52db1e375116c750da9a619aaaea134bddebbe
This commit is contained in:
Eric Harney 2018-04-12 11:43:41 -04:00
parent a8a9dda300
commit a4abfa463e
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ global_opts = [
default='cinder.scheduler.manager.SchedulerManager',
help='Full class name for the Manager for scheduler'),
cfg.HostAddressOpt('host',
sample_default='localhost',
default=socket.gethostname(),
help='Name of this node. This can be an opaque '
'identifier. It is not necessarily a host name, '