From 2eb24d44526e96184bec3908311baf4eda230873 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 27 Apr 2020 11:54:02 +0000 Subject: [PATCH] Generated from f3e9da529d2d8c5346d88e584a2a9ac6665e5281 correct the operationid --- sdk/storage/azure-mgmt-storagecache/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/storage/azure-mgmt-storagecache/setup.py b/sdk/storage/azure-mgmt-storagecache/setup.py index fe0d6e94995a..8603a9645105 100644 --- a/sdk/storage/azure-mgmt-storagecache/setup.py +++ b/sdk/storage/azure-mgmt-storagecache/setup.py @@ -36,7 +36,9 @@ pass # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: +with open(os.path.join(package_folder_path, 'version.py') + if os.path.exists(os.path.join(package_folder_path, 'version.py')) + else os.path.join(package_folder_path, '_version.py'), 'r') as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)