Skip to content

Commit

Permalink
BugFix: Ensuring Constants is added first to both handler and core pa… (
Browse files Browse the repository at this point in the history
#32)

* BugFix: Ensuring Constants is added first to both handler and core package files

* Updating manifest version
  • Loading branch information
rane-rajasi authored Aug 13, 2020
1 parent 0cc4437 commit 755d08a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extension/src/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ExtensionImage xmlns="http://schemas.microsoft.com/windowsazure">
<ProviderNameSpace>Microsoft.CPlat.Core</ProviderNameSpace>
<Type>LinuxPatchExtension</Type>
<Version>1.6.4</Version>
<Version>1.6.5</Version>
<Label>Microsoft Azure VM InGuest Patch Extension for Linux Virtual Machines</Label>
<HostingResources>VmRole</HostingResources>
<MediaLink></MediaLink>
Expand Down
2 changes: 2 additions & 0 deletions src/tools/Package-All.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def generate_compiled_script(source_code_path, merged_file_full_path, merged_fil
modules_to_be_merged.append(file_path)
elif os.path.basename(file_path) in ('__init__.py'):
continue
elif os.path.basename(file_path) in ('Constants.py'):
modules_to_be_merged.insert(0, file_path)
else:
if len(modules_to_be_merged) > 0 and '__main__.py' in modules_to_be_merged[-1]:
modules_to_be_merged.insert(-1, file_path)
Expand Down
2 changes: 1 addition & 1 deletion src/tools/Package-Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def generate_compiled_script(source_code_path, merged_file_full_path, merged_fil
modules_to_be_merged.append(file_path)
elif os.path.basename(file_path) in ('__init__.py'):
continue
elif os.path.basename(file_path) in ('base_log_processor.py', 'PackageManager.py'):
elif os.path.basename(file_path) in ('PackageManager.py', 'Constants.py'):
modules_to_be_merged.insert(0, file_path)
else:
if len(modules_to_be_merged) > 0 and '__main__.py' in modules_to_be_merged[-1]:
Expand Down

0 comments on commit 755d08a

Please sign in to comment.