Fix parser run error when attach blockstorage. 61/20161/1
authorshangxdy <shang.xiaodong@zte.com.cn>
Thu, 1 Sep 2016 13:41:27 +0000 (21:41 +0800)
committerxiaodong shang <shang.xiaodong@zte.com.cn>
Thu, 1 Sep 2016 14:24:07 +0000 (14:24 +0000)
commit8bf7f7ab2d61fae5b07e52b4a39340eba68086d9
tree10c2d7c5bbb3e20aaa4371559fd484d0707903dd
parent43dacd32398a75ba51c3f825b3fe999ecba42c64
Fix parser run error when attach blockstorage.

The error is below:
CREATE_FAILED  Error: resources.tosca.relationships.attachesto_1: Failed
to attach volume dc1cd8fb-9cf3-42c2-bb3e-6a24ba354003 to server
fded0b07-9da2-4d9c-aedc-fefd22ee1efb - Invalid input for field/attribute
device. Value: /data. u'/data' does not match
'(^/dev/x{0,1}[a-z]{0,1}d{0,1})([a-z]+)[0-9]*$'

JIRA:PARSER-102

Change-Id: Ie30c669ab5eeddbcd8bc33d648b8cd33d9942333
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
(cherry picked from commit 843b0222bc3171db78d8f5fcf45ff1d0c4a72731)
tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml
tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml