Skip to content

Commit

Permalink
Merge pull request #1636 from dbungert/udi-gh-1772
Browse files Browse the repository at this point in the history
storage: restricted probes must gather fs info
  • Loading branch information
dbungert authored Apr 5, 2023
2 parents a8e2b3e + c921192 commit 70a2a66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subiquity/server/controllers/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ async def v2_edit_partition_POST(self, data: ModifyPartitionV2) \
@with_context(name='probe_once', description='restricted={restricted}')
async def _probe_once(self, *, context, restricted):
if restricted:
probe_types = {'blockdev'}
probe_types = {'blockdev', 'filesystem'}
fname = 'probe-data-restricted.json'
key = "ProbeDataRestricted"
else:
Expand Down
3 changes: 2 additions & 1 deletion subiquity/server/controllers/tests/test_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def setUp(self):

async def test_probe_restricted(self):
await self.fsc._probe_once(context=None, restricted=True)
self.app.prober.get_storage.assert_called_with({'blockdev'})
expected = {'blockdev', 'filesystem'}
self.app.prober.get_storage.assert_called_with(expected)

async def test_probe_os_prober_false(self):
self.app.opts.use_os_prober = False
Expand Down

0 comments on commit 70a2a66

Please sign in to comment.