def get_devices():
"""Parse 'osd-devices' action parameter, returns list."""
devices = []
for path in hookenv.action_get('osd-devices').split(' '):
path = path.strip()
if not os.path.isabs(path):
raise Error('{}: Not absolute path.'.format(path))
devices.append(path)
return devices
评论列表
文章目录