~ahasenack/landscape-client/landscape-client-11.02-0ubuntu0.8.04.1

« back to all changes in this revision

Viewing changes to scripts/landscape-is-cloud-managed

  • Committer: Andreas Hasenack
  • Date: 2011-05-05 14:12:15 UTC
  • Revision ID: andreas@canonical.com-20110505141215-5ymuyyh5es9pwa6p
Added hardy files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
import sys, os
 
3
if os.path.dirname(os.path.abspath(sys.argv[0])) == os.path.abspath("scripts"):
 
4
    sys.path.insert(0, "./")
 
5
else:
 
6
    from landscape.lib.warning import hide_warnings
 
7
    hide_warnings()
 
8
 
 
9
from landscape.broker.registration import is_cloud_managed
 
10
 
 
11
# We return 0 if it succeeds
 
12
sys.exit(not is_cloud_managed())