]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix LIO target helper when missing targetcli
authorGorka Eguileor <geguileo@redhat.com>
Sun, 10 May 2015 14:50:36 +0000 (16:50 +0200)
committerGorka Eguileor <geguileo@redhat.com>
Tue, 16 Jun 2015 17:32:47 +0000 (19:32 +0200)
commit434bbdf4d047fb206709674a8f0f9141405a84d9
tree7a91cb153fa357812f2e0a058f08b36b2c589bda
parent6199485a71f1ab6ca8dac1f8ef966d7f1694fe3f
Fix LIO target helper when missing targetcli

After patch to fix LIO target persistence was merged, a bug was
introduced where target creation/removal would result in an exception if
targetcli is not installed on the system.

This patch fixes this by checking if path to the default file exists on
the system and creating it if doesn't.

Change-Id: I5ecc1ae47482ea43a4890ccd81a4e872ab570069
Closes-Bug: #1453518
cinder/cmd/rtstool.py
cinder/tests/unit/test_cmd.py