ceph-disk: fix PrepareData.set_type() args should be class member.

Signed-off-by: You Ji <youji@ebay.com>
This commit is contained in:
youji 2016-04-08 08:36:44 -07:00
parent 4c203b3a14
commit 14a66f67db

View File

@ -2384,7 +2384,7 @@ class PrepareData(object):
elif stat.S_ISBLK(dmode):
self.type = self.DEVICE
else:
raise Error('not a dir or block device', args.data)
raise Error('not a dir or block device', self.args.data)
def is_file(self):
return self.type == self.FILE