saltstack: prefer cached_location method over @clone ivar
This commit is contained in:
parent
263170e5d8
commit
131bbb6e3a
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ require "formula"
|
|||
# This is populated from git information unfortunately.
|
||||
class SaltHeadDownloadStrategy < GitDownloadStrategy
|
||||
def stage
|
||||
@clone.cd {reset}
|
||||
safe_system "git", "clone", @clone, "."
|
||||
cached_location.cd { reset }
|
||||
safe_system "git", "clone", cached_location, "."
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue