Fix breakage in salt-ssh

What the?!

I'm blaming that one on a vim buffer!

On Thursday, November 13, 2014, Pedro Algarvio <notifications@github.com>
wrote:

> In salt/grains/core.py:
>
> > @@ -584,10 +584,13 @@ def _virtual(osdata):
> >      sysctl = salt.utils.which('sysctl')
> >      if osdata['kernel'] in choices:
> >          if os.path.isdir('/proc'):
> > -            self_root = os.stat('/')
> > -            init_root = os.stat('/proc/1/root/.')
> > -            if self_root != init_root:
> > -                grains['virtual_subtype'] = 'chroot'
> > +            try:
> > +                self_root = os.stat('/')
> > +                init_root = os.stat('/proc/1/root/.')
> > +                if self_root != init_root:
> > +                    grains['virtual_subtype'] = 'chroot'
> > +            except (IOError, OSError):
> > +                pass
>
> [image: :smile:]
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/saltstack/salt/pull/18072/files#r20338194>.
>