Yes, I did that only for example.

But as a workaround, if you like my approach in common, I can add a check like
```
retcode = 0
if isinstance(return_data, dict):
  retcode = return_data.get('retcode', 0)
```
And this will work for modules which are not return a good value yet.