Skip to content

Commit 90a99b2

Browse files
benankbenank
andauthored
Fix + update version (#151)
Co-authored-by: benank <[email protected]>
1 parent 6521d95 commit 90a99b2

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/core/src/bootstrap/Constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __iter__(self):
3030
UNKNOWN = "Unknown"
3131

3232
# Extension version (todo: move to a different file)
33-
EXT_VERSION = "1.6.39"
33+
EXT_VERSION = "1.6.40"
3434

3535
# Runtime environments
3636
TEST = 'Test'

src/extension/src/ActionHandler.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import shutil
2121
import time
2222
from distutils.version import LooseVersion
23-
from os import path
2423

2524
from extension.src.Constants import Constants
2625
from extension.src.EnableCommandHandler import EnableCommandHandler
@@ -257,7 +256,7 @@ def get_all_versions(extension_pardir):
257256

258257
@staticmethod
259258
def filter_files_from_versions(paths_to_all_versions):
260-
return [p for p in paths_to_all_versions if path.isdir(p)]
259+
return [p for p in paths_to_all_versions if os.path.isdir(p)]
261260

262261
def copy_config_files(self, src, dst, raise_if_not_copied=False):
263262
""" Copies files, required by the extension, from the given config/src folder """
@@ -281,7 +280,7 @@ def copy_config_files(self, src, dst, raise_if_not_copied=False):
281280
shutil.copy(file_to_copy, dst)
282281
break
283282
except Exception as error:
284-
if i < Constants.MAX_IO_RETRIES:
283+
if i < Constants.MAX_IO_RETRIES - 1:
285284
time.sleep(i + 1)
286285
else:
287286
error_msg = "Failed to copy file after {0} tries. [Source={1}] [Destination={2}] [Exception={3}]".format(Constants.MAX_IO_RETRIES, str(file_to_copy), str(dst), repr(error))

src/extension/src/Constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __iter__(self):
2828
yield item
2929

3030
# Extension version (todo: move to a different file)
31-
EXT_VERSION = "1.6.39"
31+
EXT_VERSION = "1.6.40"
3232

3333
# Runtime environments
3434
TEST = 'Test'

src/extension/src/manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ExtensionImage xmlns="http://schemas.microsoft.com/windowsazure">
33
<ProviderNameSpace>Microsoft.CPlat.Core</ProviderNameSpace>
44
<Type>LinuxPatchExtension</Type>
5-
<Version>1.6.39</Version>
5+
<Version>1.6.40</Version>
66
<Label>Microsoft Azure VM InGuest Patch Extension for Linux Virtual Machines</Label>
77
<HostingResources>VmRole</HostingResources>
88
<MediaLink></MediaLink>

0 commit comments

Comments
 (0)