Shouldn't this code be:
```python
if running and public:
    data.public_ips = public
if running and private:
    data.private_ips = private
```