Skip to content

Commit

Permalink
reverting change to use .insert() instead of concat (#1645)
Browse files Browse the repository at this point in the history
* reverting change insert to concat

* Update manifest.xml
  • Loading branch information
norakoiralamsft committed Dec 13, 2022
1 parent 5408d3c commit 5ba6dab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VMAccess/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.OSTCExtensions</ProviderNameSpace>
<Type>VMAccessForLinux</Type>
<Version>1.5.13</Version>
<Version>1.5.14</Version>
<Label>Microsoft Azure VM Access Extension for Linux Virtual Machines</Label>
<HostingResources>VmRole</HostingResources>
<MediaLink></MediaLink>
Expand Down
4 changes: 3 additions & 1 deletion VMAccess/vmaccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ def _set_sshd_config(config, name, val):
# Match block must be put in the end of sshd config
break
if notfound:
config = "{0} {1}".format(name, val) + config
if i is None:
i = 0
config.insert(i, "{0} {1}".format(name, val))
return config


Expand Down

0 comments on commit 5ba6dab

Please sign in to comment.