diff options
| author | Ken Pepple <ken.pepple@gmail.com> | 2011-02-24 11:05:18 -0800 |
|---|---|---|
| committer | Ken Pepple <ken.pepple@gmail.com> | 2011-02-24 11:05:18 -0800 |
| commit | 0b490e1ade9e8e65e8df6f86bbe47bd3dbe1d44c (patch) | |
| tree | 73c2638d13d1d2d99447603a2c055dce1ac48a2e /plugins | |
| parent | 3696b1d8076426b2d94a232f8b77985d99a3e658 (diff) | |
| parent | 25f50fba4a79b45edea33aab58c76197c7d764dc (diff) | |
| download | nova-0b490e1ade9e8e65e8df6f86bbe47bd3dbe1d44c.tar.gz nova-0b490e1ade9e8e65e8df6f86bbe47bd3dbe1d44c.tar.xz nova-0b490e1ade9e8e65e8df6f86bbe47bd3dbe1d44c.zip | |
merge trunk
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/xenserver/xenapi/etc/xapi.d/plugins/glance | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance index 8cb439259..61b947c25 100644 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance @@ -73,6 +73,10 @@ def _copy_kernel_vdi(dest, copy_args): logging.debug("copying kernel/ramdisk file from %s to /boot/guest/%s", dest, vdi_uuid) filename = KERNEL_DIR + '/' + vdi_uuid + #make sure KERNEL_DIR exists, otherwise create it + if not os.path.isdir(KERNEL_DIR): + logging.debug("Creating directory %s", KERNEL_DIR) + os.makedirs(KERNEL_DIR) #read data from /dev/ and write into a file on /boot/guest of = open(filename, 'wb') f = open(dest, 'rb') |
