summaryrefslogtreecommitdiff
path: root/writeexts.py
diff options
context:
space:
mode:
Diffstat (limited to 'writeexts.py')
-rwxr-xr-xwriteexts.py8
1 files changed, 8 insertions, 0 deletions
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 []