~ubuntu-branches/ubuntu/jaunty/landscape-client/jaunty-proposed

« back to all changes in this revision

Viewing changes to landscape/manager/customgraph.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2010-06-28 18:07:18 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100628180718-m3t2ttgg8efbg19d
Tags: 1.5.2.1-0ubuntu0.9.04.0
Filter duplicate network interfaces in get_active_interfaces (LP: #597000)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
from landscape.lib.scriptcontent import generate_script_hash
8
8
from landscape.accumulate import Accumulator
9
 
from landscape.manager.manager import ManagerPlugin
 
9
from landscape.manager.plugin import ManagerPlugin
10
10
from landscape.manager.scriptexecution import (
11
11
    ProcessFailedError, ScriptRunnerMixin, ProcessTimeLimitReachedError,
12
12
    get_user_info, UnknownUserError)
127
127
        try:
128
128
            uid, gid = get_user_info(user)[:2]
129
129
        except UnknownUserError:
130
 
           logging.error(u"Attempt to add graph with unknown user %s" %
131
 
                         user)
 
130
            logging.error(u"Attempt to add graph with unknown user %s" %
 
131
                          user)
132
132
        else:
133
133
            script_file = file(filename, "w")
134
134
            self.write_script_file(