Skip to content

Commit

Permalink
refresh pool size as part of the state udpate. rockstor#650
Browse files Browse the repository at this point in the history
  • Loading branch information
schakrava committed Jun 24, 2015
1 parent 2a49ad8 commit 8e8b6a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/rockstor/storageadmin/views/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def post(self, request, command):

try:
exports = create_nfs_export_input(NFSExport.objects.all())
logger.info('export = %s' % exports)
refresh_nfs_exports(exports)
except Exception, e:
e_msg = ('Unable to export all nfs shares due to a system'
Expand Down
1 change: 1 addition & 0 deletions src/rockstor/storageadmin/views/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def _refresh_pool_state(self, pool):
pool_info = get_pool_info(dname)
pool.name = pool_info['label']
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()
return pool

Expand Down

0 comments on commit 8e8b6a5

Please sign in to comment.