From d47171701646db0bfca5f0026b3a6db08176bde6 Mon Sep 17 00:00:00 2001 From: abhiram_moturi Date: Thu, 15 Jan 2015 11:31:53 -0500 Subject: [PATCH] Fix zfssa driver volume attach to work with latest zfssa software This fixes the volume attach issue of the zfssa driver with the latest zfssa software release and makes it work for all zfssa versions. Change-Id: I4b9ceb7788c112ee5998f24b00a07d4346bc6275 Closes-Bug: #1411291 --- cinder/volume/drivers/zfssa/zfssarest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cinder/volume/drivers/zfssa/zfssarest.py b/cinder/volume/drivers/zfssa/zfssarest.py index 6e6981bc6..36190357e 100644 --- a/cinder/volume/drivers/zfssa/zfssarest.py +++ b/cinder/volume/drivers/zfssa/zfssarest.py @@ -445,6 +445,8 @@ class ZFSSAApi(object): } if 'origin' in val['lun']: ret.update({'origin': val['lun']['origin']}) + if isinstance(ret['number'], list): + ret['number'] = ret['number'][0] return ret -- 2.45.2