MCPcopy Create free account
hub / github.com/ceph/ceph / update_config

Function update_config

qa/tasks/devstack.py:200–209  ·  view source on GitHub ↗
(config_name, config_stream, update_dict,
                      section='DEFAULT')

Source from the content-addressed store, hash-verified

198 node.run(args=['cp', '-f', file_name, file_name + backup_ext])
199
200 def update_config(config_name, config_stream, update_dict,
201 section='DEFAULT'):
202 parser = ConfigParser()
203 parser.read_file(config_stream)
204 for (key, value) in update_dict.items():
205 parser.set(section, key, value)
206 out_stream = StringIO()
207 parser.write(out_stream)
208 out_stream.seek(0)
209 return out_stream
210
211 updates = [
212 dict(name='/etc/glance/glance-api.conf', options=dict(

Callers 3

init_connsMethod · 0.85
parse_client_optionsMethod · 0.85

Calls 5

read_fileMethod · 0.45
itemsMethod · 0.45
setMethod · 0.45
writeMethod · 0.45
seekMethod · 0.45

Tested by

no test coverage detected