瀏覽代碼

HUE-1559 [core] app registry should truncate and overwrite

Abraham Elmahrek 12 年之前
父節點
當前提交
ba25522
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      tools/app_reg/registry.py

+ 1 - 3
tools/app_reg/registry.py

@@ -107,9 +107,7 @@ class AppRegistry(object):
     """Save and write out the registry"""
     assert self._initialized, "Registry not yet initialized"
 
-    tmp_path = self._reg_path + '.new'
-    self._write(tmp_path)
-    os.rename(tmp_path, self._reg_path)
+    self._write(self._reg_path)
     LOG.info('=== Saved registry at %s' % (self._reg_path,))