mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
ceph-disk: fix PrepareData.set_type() args should be class member.
Signed-off-by: You Ji <youji@ebay.com>
This commit is contained in:
parent
4c203b3a14
commit
14a66f67db
@ -2384,7 +2384,7 @@ class PrepareData(object):
|
|||||||
elif stat.S_ISBLK(dmode):
|
elif stat.S_ISBLK(dmode):
|
||||||
self.type = self.DEVICE
|
self.type = self.DEVICE
|
||||||
else:
|
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):
|
def is_file(self):
|
||||||
return self.type == self.FILE
|
return self.type == self.FILE
|
||||||
|
Loading…
Reference in New Issue
Block a user