2
0
salt-formula/salt/pkgrepo/suse
Imran Iqbal d5320a35ed
fix(pkgrepo/suse/install): avoid managing repo if it already exists
Use ugly `zypper lr --uri` hack to get around failure if the `base_url`
already exists under a different name:

```
      ID: salt-pkgrepo-install-saltstack-suse
Function: pkgrepo.managed
    Name: systemsmanagement_saltstack_products
  Result: False
 Comment: Failed to configure repo 'systemsmanagement_saltstack_products':
          Repository 'systemsmanagement_saltstack_products' already exists as 'systemsmanagement_saltstack'.
 Started: 09:28:39.154054
Duration: 2760.727 ms
```

Upstream code:

* 45cc49daed/salt/modules/zypperpkg.py (L1262-L1265)
2021-01-29 11:23:00 +00:00
..
absent.sls fix(symlinks): replace symlinks with real files 2019-09-20 11:02:21 +11:00
clean.sls refactor(linux): align to template-formula (plus fixes) 2019-07-29 23:52:13 +01:00
init.sls refactor(linux): align to template-formula (plus fixes) 2019-07-29 23:52:13 +01:00
install.sls fix(pkgrepo/suse/install): avoid managing repo if it already exists 2021-01-29 11:23:00 +00:00