Maybe:
```python
hosts = (conf.get_value(["rose-suite-run", "hosts"], "").split() +
             conf.get_value(["rose-suite-run", "scan-hosts"], "").split()
if not hosts:
    args = ["localhost"]
else:
    args = list(set(hosts))
```