Sync eng/common directory with azure-sdk-tools for PR 1748 (#2508)

* Simplify Ubuntu image name check for dns bypass

* Fix typo

Co-authored-by: Praveen Kuttappan <praveen.kuttappan@gmail.com>
This commit is contained in:
Azure SDK Bot 2021-07-14 16:14:51 -07:00 committed by GitHub
parent 427e892582
commit 2b4ece0098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,6 @@ steps:
condition: |
and(
succeededOrFailed(),
or(
eq(variables['OSVmImage'], 'ubuntu-18.04'),
eq(variables['OSVmImage'], 'ubuntu-20.04'),
eq(variables['OSVmImage'], 'MMSUbuntu18.04'),
eq(variables['OSVmImage'], 'MMSUbuntu20.04')
),
contains(variables['OSVmImage'], 'ubuntu'),
eq(variables['Container'], '')
)