I've been using opsmop to set up my Vespene server, and I noticed this when absenting an already absent File.
The file doesn't exist.
$ ls -la /etc/nginx/sites-enabled/default ls: cannot access '/etc/nginx/sites-enabled/default': No such file or directory
With a Resource like this,
File( name='/etc/nginx/sites-enabled/default', absent=True, signals='nginx_changed', )
You get a check like this:
$ python deploy.py --check --local 1. NginxRole => File: /etc/nginx/sites-enabled/default: parameters: | absent: True | signals: nginx_changed planning needs: rm signaled: nginx_changed
There should be nothing under planning, I think?
If you apply the policy, you get an exception.
AttributeError: 'File' object has no attribute 'path'
I found this in the
plan method of the
# removal? if self.absent: if not exists: self.needs("rm") return
Remove the file if it doesn't exist. Remove the
if not exists to fix this?
Is this a good place for bug reports like this at this time, or do you want github issues / pull requests?