We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 101017f + 056ce0e commit e9d985fCopy full SHA for e9d985f
utils/query-state/Configuration.psm1
@@ -1,11 +1,15 @@
1
2
function Get-Configuration() {
3
- $remote = Get-ConfiguredRemote
4
- return @{
5
- remote = $remote
6
- dependencyBranch = Get-ConfiguredDependencyBranch
7
- defaultServiceLine = Get-ConfiguredDefaultServiceLine -remote $remote
8
- atomicPushEnabled = Get-ConfiguredAtomicPushEnabled
+ try {
+ $remote = Get-ConfiguredRemote
+ return @{
+ remote = $remote
+ dependencyBranch = Get-ConfiguredDependencyBranch
+ defaultServiceLine = Get-ConfiguredDefaultServiceLine -remote $remote
9
+ atomicPushEnabled = Get-ConfiguredAtomicPushEnabled
10
+ }
11
+ } finally {
12
+ $Global:LASTEXITCODE = 0
13
}
14
15
0 commit comments