Skip to content

Commit

Permalink
fix #166
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarron committed Nov 16, 2022
1 parent d86d4df commit 543731e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VenafiPS/Classes/TppObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class TppObject {
$this.Guid = $Guid
# issue 129
$this.Name = $this.Path.Split('\')[-1]
$this.ParentPath = $this.Path.Replace(('\{0}' -f $this.Name), '')
# issue 166
$this.ParentPath = $this.Path -replace "(.*)\\$($this.Name)$", '$1'
$this | Add-Member -MemberType ScriptMethod -Name ToString -Value { $this.Path } -Force
}

Expand Down

0 comments on commit 543731e

Please sign in to comment.