Skip to content

Commit

Permalink
fix: track DCv2 setting removal
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Plant <[email protected]>
  • Loading branch information
pl4nty committed Feb 17, 2024
1 parent fba3857 commit 7aed930
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import asyncio
import json
import os
import shutil
from pathlib import Path

from azure.identity.aio import DefaultAzureCredential
Expand All @@ -27,6 +28,7 @@ async def main():
)
settings = await client.device_management.configuration_settings.get(request_configuration=request_config)

shutil.rmtree(output)
os.makedirs(output, exist_ok=True)
for setting in settings.json()['value']:
setting.pop('version')
Expand Down

0 comments on commit 7aed930

Please sign in to comment.