Remove only the file extension on cached node files instead of replacing every '.p' substring.

This commit is contained in:
William Huba 2015-09-14 14:39:42 -04:00 committed by rallytime
parent 87667e2de6
commit f0566c4b8f

View file

@ -2780,7 +2780,7 @@ def missing_node_cache(prov_dir, node_list, provider, opts):
'''
cached_nodes = []
for node in os.listdir(prov_dir):
cached_nodes.append(node.replace('.p', ''))
cached_nodes.append(os.path.splitext(node)[0])
log.debug(sorted(cached_nodes))
log.debug(sorted(node_list))