Commit 5bc80c12 authored by Nikos Skalkotos's avatar Nikos Skalkotos

Fix an bug that raised an AttributeError on *BSD

Fix a typo that raised an AttributeError exception when the input media
was a *BSD system.
parent c0a4a74e
# -*- coding: utf-8 -*-
# Copyright (C) 2011-2014 GRNET S.A.
# Copyright (C) 2011-2015 GRNET S.A.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -107,7 +107,7 @@ class Bsd(Unix):
def _get_passworded_users(self):
"""Returns a list of non-locked user accounts"""
if not self.g.is_file('/etc/master.passwd'):
if not self.image.g.is_file('/etc/master.passwd'):
self.out.warn("Unable to collect user info. "
"File: `/etc/master.passwd' is missing!")
return []
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment