Generate files under ./etc
According the README, the tempest.conf and accounts.yaml files should be generated under refstack-client/etc/ dir. Change-Id: Ic1024b56273466bc85836b335eab89f615e5f9f9
This commit is contained in:
parent
bc4b705714
commit
044cf48649
@ -419,14 +419,14 @@ class RefstackClient:
|
|||||||
|
|
||||||
def generate_tempest_config(self):
|
def generate_tempest_config(self):
|
||||||
'''Generate tempest.conf for a deployed OpenStack Cloud.'''
|
'''Generate tempest.conf for a deployed OpenStack Cloud.'''
|
||||||
self.logger.info("Generating tempest.conf")
|
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|
||||||
# Write tempest.conf in refstack_client folder
|
# Write tempest.conf in refstack_client/etc folder
|
||||||
if not self.args.out:
|
if not self.args.out:
|
||||||
config_path = os.path.join(self.refstack_dir, 'tempest.conf')
|
config_path = os.path.join(self.refstack_dir, 'etc/tempest.conf')
|
||||||
else:
|
else:
|
||||||
config_path = self.args.out
|
config_path = self.args.out
|
||||||
|
self.logger.info("Generating in %s" % config_path)
|
||||||
|
|
||||||
# Generate Tempest configuration
|
# Generate Tempest configuration
|
||||||
try:
|
try:
|
||||||
@ -462,7 +462,7 @@ class RefstackClient:
|
|||||||
|
|
||||||
# Generate accounts.yaml if accounts.file is not given
|
# Generate accounts.yaml if accounts.file is not given
|
||||||
if not self.args.test_accounts:
|
if not self.args.test_accounts:
|
||||||
account_file = os.path.join(self.refstack_dir, 'accounts.yaml')
|
account_file = os.path.join(self.refstack_dir, 'etc/accounts.yaml')
|
||||||
kwargs.update({'create_accounts_file': account_file})
|
kwargs.update({'create_accounts_file': account_file})
|
||||||
self.logger.info('Account file will be generated at %s.'
|
self.logger.info('Account file will be generated at %s.'
|
||||||
% account_file)
|
% account_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user