Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Added support for python 3 for DIY DSC #789

Merged
merged 29 commits into from
May 10, 2021
Merged

Added support for python 3 for DIY DSC #789

merged 29 commits into from
May 10, 2021

Conversation

jineshcodes
Copy link
Contributor

@jineshcodes jineshcodes commented Apr 19, 2021

Summary of changes included as a part of the PR:

Description of the changes:
As a part of porting the code we had decided to keep the code for python3 in a seperate forlder.(Most of these changes were done as a part of OMSConfig Py3 support PR). The updated folder for python scripts is as follows:

  • python2 : /opt/microsoft/dsc/Scripts
  • python3: /opt/microsoft/dsc/Scripts/python3

The python version of the machine will be determined by checking the existance of python2 and python3 command. In this version python2 takes precidence if both python 2 and 3 are present. (This is done to maintain compabality for older distros.)

Instead of just logging success and failure a lot of debug and detailed logs ave been added. Going forward DSC will have two log files:

  • /var/opt/omi/log/dsc.log
  • /var/opt/omi/log/dscdetailed.log

A lot of issues were discovered for the master branch, as the last release was done years back. I have tried to fix most of them. The issue were as a part of the DROP OMI DEPENDECY pr, which was only intended for omsconfig and ended up breaking DIY DSC.

Testing:
Manually tested for sanity and happy path secnarios on both python 2 and 3.
Distro testing is in progress using the test suite.
Bug bas planned for this week.

@jineshcodes jineshcodes merged commit f0e0a53 into master May 10, 2021
jineshcodes pushed a commit to microsoft/Build-PowerShell-DSC-for-Linux that referenced this pull request May 10, 2021
Added support for python 3 for DIY DSC

Updating the version of DSC to 1.2.0.0 for the changes introducted as a part of the PR: microsoft/PowerShell-DSC-for-Linux#789

These changes have to go in after the above PR is merged.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants