Commit bbb5a8b6 authored by Yakubov, Sergey's avatar Yakubov, Sergey
Browse files

bugfix

parent 04339d32
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -44,7 +44,10 @@ class Symlink(Default):
            # problem in creating the symlink
            self.logger(logging.ERROR, 'Symlink {} could not be created'.format(dest))
            raise exception.DestinationNotAccessible()
        if not self.attributes.get['ignore_broken_link', False] and not os.path.exists(dest):
        ignore_broken_link = False
        if "extended_attributes" in self.attributes:
            ignore_broken_link = self.attributes["extended_attributes"].get("ignore_broken_link", False)
        if not ignore_broken_link and not os.path.exists(dest):
            # could not find the file following the symlink
            self.logger(logging.ERROR, 'Symlink {} appears to be a broken link to {}'
                        .format(dest, path))