Code Review
/
doctor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Support Apex with services in containers
[doctor.git]
/
doctor_tests
/
installer
/
common
/
restore_compute_config.py
diff --git
a/doctor_tests/installer/common/restore_compute_config.py
b/doctor_tests/installer/common/restore_compute_config.py
index
0971d12
..
0e9939f
100644
(file)
--- a/
doctor_tests/installer/common/restore_compute_config.py
+++ b/
doctor_tests/installer/common/restore_compute_config.py
@@
-11,8
+11,11
@@
import shutil
def restore_cpu_allocation_ratio():
def restore_cpu_allocation_ratio():
- nova_file = '/etc/nova/nova.conf'
- nova_file_bak = '/etc/nova/nova.bak'
+ nova_base = "/var/lib/config-data/puppet-generated/nova"
+ if not os.path.isdir(nova_base):
+ nova_base = ""
+ nova_file = nova_base + '/etc/nova/nova.conf'
+ nova_file_bak = nova_base + '/etc/nova/nova.bak'
if not os.path.isfile(nova_file_bak):
print('Bak_file:%s does not exist.' % nova_file_bak)
if not os.path.isfile(nova_file_bak):
print('Bak_file:%s does not exist.' % nova_file_bak)