Skip to content

Commit f1773d7

Browse files
authored
fix: when Version is not set in Set-VSTeamAccount (#532)
* fix #531 * uddate changelog.md
1 parent 69fccae commit f1773d7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 7.13.1
4+
Merged [Pull Request](https://github.com/MethodsAndPractices/vsteam/pull/532) from [Miguel Nieto](https://github.com/mnieto) the following:
5+
- Fix Set-VSTeamAccount Error on Module Import [531](https://github.com/MethodsAndPractices/vsteam/issues/531)
6+
7+
38
## 7.13.0
49

510
Merged [Pull Request](https://github.com/MethodsAndPractices/vsteam/pull/515) from [mrwalters1988](https://github.com/mrwalters1988) the following:

Source/VSTeam.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ if ($null -ne $env:TEAM_PROJECT) {
3838
# set vsteam account to initialize given variables properly
3939
$commonArgs = @{
4040
Account = $env:TEAM_ACCT
41-
Version = $env:TEAM_VERSION
41+
}
42+
if (-not [string]::IsNullOrEmpty($env:TEAM_VERSION)) {
43+
$commonArgs["Version"] = $env:TEAM_VERSION
4244
}
4345

4446
if (_useBearerToken) {

0 commit comments

Comments
 (0)