Skip to content

Commit

Permalink
mount the pool before querying raid info. rockstor#723
Browse files Browse the repository at this point in the history
  • Loading branch information
schakrava committed Jul 11, 2015
1 parent 91903f6 commit 1b9d594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rockstor/storageadmin/views/pool.py
Expand Up @@ -183,6 +183,7 @@ def _refresh_pool_state(self, pool):
mount_root(pool, dname)
pool_info = get_pool_info(dname)
pool.name = pool_info['label']
mount_root(pool, dname)
pool.raid = pool_raid('%s%s' % (settings.MNT_PT, pool.name))['data']
pool.size = pool_usage('%s%s' % (settings.MNT_PT, pool.name))[0]
pool.save()
Expand Down

0 comments on commit 1b9d594

Please sign in to comment.