@@ -0,0 +1,995 @@
+# Still some problems...%0A%0Aimport time%0Aimport shutil%0Afrom configobj import ConfigObj%0A%0ANOVA_API_CONF = %22/etc/nova/api-paste.ini%22%0AOS_API_SEC = %22composite:openstack_compute_api_v2%22%0ADR_FILTER_TARGET_KEY = %22keystone_nolimit%22%0ADR_FILTER_TARGET_KEY_VALUE = %22compute_req_id faultwrap sizelimit %22 %5C%0A                             %22authtoken keystonecontext drfilter %22 %5C%0A                             %22osapi_compute_app_v2%22%0ADR_SEC = %22filter:drfilter%22%0ADR_KEY = %22paste.filter_factory%22%0ADR_KEY_VALUE = %22drfilter.urlforwarding:url_forwarding_factory%22%0A%0A# Backup /etc/nova/api-paste.ini%0Anow = time.strftime('%25Y%25m%25d%25H%25M%25S')%0Atarget = NOVA_API_CONF + %22.%22 + now + %22.bak%22%0Ashutil.copyfile(NOVA_API_CONF, target)%0A%0A# Update /etc/nova/api-paste.ini%0Aconf = ConfigObj(NOVA_API_CONF)%0Aconf%5BOS_API_SEC%5D%5BDR_FILTER_TARGET_KEY%5D = DR_FILTER_TARGET_KEY_VALUE%0Aconf%5BDR_SEC%5D = %7B%7D%0Aconf%5BDR_SEC%5D%5BDR_KEY%5D = DR_KEY_VALUE%0Aconf.write()%0A%0Afor sec in conf:%0A    print(sec)%0A    for key in conf%5Bsec%5D:%0A        print(%22%5Ct%22 + key + %22 = %22 + conf%5Bsec%5D%5Bkey%5D)%0A

Add a tools to config nova paste, not finished