set-internal-var
Description
Sets a nsbl-connector internal variable. This is mainly useful for debugging, but also has a few other uses if you are in a pinch. Usually it's best to not have to use this.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | -- | the value Required |
|
string | -- | the var name Required |
Code
doc: short_help: Sets a nsbl-connector internal variable. help: | Sets a nsbl-connector internal variable. This is mainly useful for debugging, but also has a few other uses if you are in a pinch. Usually it's best to not have to use this. args: var: doc: short_help: the var name type: string required: true empty: false value: doc: short_help: the value type: string required: true frecklets: - frecklet: name: set_fact type: ansible-module msg: 'setting internal var {{:: var ::}}' vars: '{{:: var ::}}': '{{:: value ::}}'
frecklecute --community set-internal-var --help Usage: frecklecute set-internal-var [OPTIONS] Sets a nsbl-connector internal variable. This is mainly useful for debugging, but also has a few other uses if you are in a pinch. Usually it's best to not have to use this. Options: --value VALUE the value [required] --var VAR the var name [required] --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.set_internal_var.SetInternalVar # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class SetInternalVar(AutoPycklet): """Sets a nsbl-connector internal variable. This is mainly useful for debugging, but also has a few other uses if you are in a pinch. Usually it's best to not have to use this. Args: value: the value var: the var name """ FRECKLET_ID = "set-internal-var" value: str = None var: str = None def __post_init__(self): super(SetInternalVar, self).__init__(var_names=["value", "var"]) frecklet_class = SetInternalVar
# -*- coding: utf-8 -*- # # module path: pycklets.set_internal_var.SetInternalVar # from pyckles import AutoPycklet class SetInternalVar(AutoPycklet): """Sets a nsbl-connector internal variable. This is mainly useful for debugging, but also has a few other uses if you are in a pinch. Usually it's best to not have to use this. Args: value: the value var: the var name """ FRECKLET_ID = "set-internal-var" def __init__(self, value=None, var=None): super(SetInternalVar, self).__init__(var_names=["value", "var"]) self._value = value self._var = var @property def value(self): return self._value @value.setter def value(self, value): self._value = value @property def var(self): return self._var @var.setter def var(self, var): self._var = var frecklet_class = SetInternalVar