Exemple #1
0
    def __init__(self, *arguments, **keyword_arguments):

        self.support = importlib.import_module(
            os.environ["GRIDLINKER_SUPPORT"]).support

        self.context = self.support.get_context()

        ActionBase.__init__(self, *arguments, **keyword_arguments)
Exemple #2
0
 def __init__(self, *n, **kw):
     # force 'no_log' to be true, since we want to return the private key as
     # a result variable and don't ever want it logged.
     # TODO: clearner way to do this?
     ctx = kw.get('play_context')
     if ctx:
         ctx.no_log = True
     ActionBase.__init__(self, *n, **kw)
	def __init__ (self, * arguments, ** keyword_arguments):

		self.support = importlib.import_module (
			os.environ ["GRIDLINKER_SUPPORT"]).support

		self.context = self.support.get_context ()

		ActionBase.__init__ (
			self,
			* arguments,
			** keyword_arguments)
    def __init__(self, *args, **kwargs):
        ActionBase.__init__(self, *args, **kwargs)
        self._supports_async = True

        if not self.NAME:
            raise Exception("Module name was not yet set")

        # Determine what is the target platform and choose the binary module accordingly
        if self.BINARY:
            platform = self._low_level_execute_command("uname -sm")
            if platform["rc"]:
                raise Exception(platform["stderr"])
            sysarch = platform["stdout"].lower().strip().split(" ")
            if len(sysarch) == 2:
                system, arch = sysarch
            else:
                raise Exception("Unknown platform: {}".format(
                    platform["stdout"]))
        else:
            system, arch = "any", "noarch"

        self.module_name = "{}-{}-{}".format(self.NAME, system, arch)
Exemple #5
0
 def __init__(self, *n, **kw):
     ctx = kw.get('play_context')
     if ctx:
         ctx.no_log = False
     ActionBase.__init__(self, *n, **kw)
Exemple #6
0
 def __init__(self, *args, **kw):
     ActionBase.__init__(self, *args, **kw)
 def __init__(self, *args, **kwargs):
   ActionBase.__init__(self, *args, **kwargs)
   AnsSpaceAndArgsPlugin.__init__(self)
   self._ansvar_updates = {}