summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2010-07-20 14:31:55 -0700
committerJustin Santa Barbara <justin@fathomdb.com>2010-07-20 14:31:55 -0700
commit5bb1d8d5ab8581696a98a159b293b992e72eec49 (patch)
tree9f9d9935b8dba3a761d06f022af479e601f3ef1e
parent9cf32d6d65035299ecfcb0563cef8ddab3c0ee4c (diff)
Cleanups
-rw-r--r--nova/compute/node.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/node.py b/nova/compute/node.py
index 56429b0f0..ba140a219 100644
--- a/nova/compute/node.py
+++ b/nova/compute/node.py
@@ -509,7 +509,7 @@ class Instance(object):
using_kernel = data['kernel_id'] and True
if using_kernel:
- if os.path.exists(basepath('kernel')):
+ if not os.path.exists(basepath('kernel')):
yield _fetch_file(data['kernel_id'], basepath('kernel'))
if data['ramdisk_id'] and not os.path.exists(basepath('ramdisk')):
yield _fetch_file(data['ramdisk_id'], basepath('ramdisk'))
@@ -540,7 +540,7 @@ class Instance(object):
net = f.read() % network_info
with open(FLAGS.simple_network_dns_template) as f:
- dns =str(Template(f.read(), searchList=[ network_info ] ))
+ dns = str(Template(f.read(), searchList=[ network_info ] ))
if key or net or dns:
logging.info('Injecting data into image %s', data['image_id'])