Merge "Change personality inject path to /"

This commit is contained in:
Jenkins 2016-12-05 18:34:15 +00:00 committed by Gerrit Code Review
commit ed5df89b15
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ class ServerPersonalityTestJSON(base.BaseV2ComputeTest):
raise self.skipException("No limit for personality files")
person = []
for i in range(0, int(max_file_limit)):
path = '/etc/test' + str(i) + '.txt'
# NOTE(andreaf) The cirros disk image is blank before boot
# so we can only inject safely to /
path = '/test' + str(i) + '.txt'
person.append({
'path': path,
'contents': base64.encode_as_text(file_contents),