From 7b9fb69291729cb00b8073875f17d8b0e66252df Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 13 Mar 2013 13:52:52 +0000 Subject: Add ATTACH_DISKS support to kvm --- writeexts.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/writeexts.py b/writeexts.py index a479f3cb..469b8557 100755 --- a/writeexts.py +++ b/writeexts.py @@ -184,3 +184,11 @@ class WriteExtension(cliapp.Application): cliapp.runcmd(['sync']) time.sleep(2) + def parse_attach_disks(self): + '''Parse $ATTACH_DISKS into list of disks to attach.''' + + if 'ATTACH_DISKS' in os.environ: + s = os.environ['ATTACH_DISKS'] + return s.split(':') + else: + return [] -- cgit v1.2.1