mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28119 from jacksontj/fetch_issue
Check if the remote exists before casting to a string.
This commit is contained in:
commit
3fdb52d1bf
1 changed files with 1 additions and 3 deletions
|
@ -1375,10 +1375,8 @@ def fetch(cwd,
|
|||
command.extend(
|
||||
[x for x in _format_opts(opts) if x not in ('-f', '--force')]
|
||||
)
|
||||
if not isinstance(remote, six.string_types):
|
||||
remote = str(remote)
|
||||
if remote:
|
||||
command.append(remote)
|
||||
command.append(str(remote))
|
||||
if refspecs is not None:
|
||||
if isinstance(refspecs, (list, tuple)):
|
||||
refspec_list = []
|
||||
|
|
Loading…
Add table
Reference in a new issue