Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Str FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Dict Num Num Num Num Str Str Str Str Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot NameLoad body Return Dict If NameLoad body Return Dict Str Str Str Str Str Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str orelse Return Call AttributeLoad Str attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list FunctionDef arguments args defaults body Expr Str If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad body Return NameLoad Return TupleLoad NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Call SubscriptLoad NameLoad Index Str NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore Call NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Str attr NameLoad NameLoad attr Expr Call SubscriptLoad NameLoad Index Str NameLoad Return Dict decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict If CompareNotEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad For NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body If BoolOpOr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str UnaryOpNot SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body Continue If BoolOpAnd NameLoad CompareNotIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body Continue Assign SubscriptStore NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict If CompareNotEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad For NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad Return Dict NameLoad Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad Assign NameStore Dict For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Dict Str Str SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str SubscriptLoad SubscriptLoad NameLoad Index Num Slice BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Num Num If NameLoad body Return NameLoad orelse Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list
N/A N/A 
Module for running imgadm command on SmartOS
 __future__ absolute_import N/A logging N/A json N/A salt.utils N/A salt.utils.decorators decorators N/A log N/A N/A logging getLogger __name__ N/A __func_alias__ N/A list_installed update_installed import_image list update import N/A __virtualname__ imgadm _check_imgadm N/A N/A N/A N/A N/A 
    Looks to see if imgadm is present on the system
     N/A N/A N/A N/A salt utils which imgadm N/A N/A decorators memoize _exit_status N/A N/A retcode N/A N/A N/A 
    Translate exit status of imgadm
     N/A ret N/A N/A 0 1 2 3 Successful completion. An error occurred. Usage error. Image not installed. N/A retcode N/A ret N/A _parse_image_meta N/A N/A image detail N/A None False N/A N/A N/A image N/A N/A N/A N/A detail N/A N/A N/A name version os description published source N/A N/A image N/A manifest N/A name N/A N/A image N/A manifest N/A version N/A N/A image N/A manifest N/A os N/A N/A image N/A manifest N/A description N/A N/A image N/A manifest N/A published_at N/A image N/A source N/A N/A N/A N/A {name}@{version} [{date}] format name N/A N/A image N/A manifest N/A name version N/A N/A image N/A manifest N/A version date N/A N/A image N/A manifest N/A published_at N/A __virtual__ N/A N/A N/A N/A N/A 
    Provides imgadm only on SmartOS
     N/A N/A N/A N/A N/A salt utils is_smartos_globalzone N/A _check_imgadm N/A N/A __virtualname__ N/A N/A False N/A N/A {0} module can only be loaded on SmartOS computed nodes format __virtualname__ N/A version N/A N/A N/A N/A N/A 
    Return imgadm version

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.version
     N/A ret N/A N/A imgadm N/A _check_imgadm N/A cmd N/A N/A {0} --version format imgadm N/A res N/A N/A N/A N/A __salt__ N/A cmd.run cmd splitlines N/A ret N/A N/A N/A res N/A 0 split N/A N/A ret N/A -1 N/A update_installed N/A N/A uuid N/A N/A N/A 
    Gather info on unknown image(s) (locally installed)

    uuid : string
        optional uuid of image

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.update [uuid]
     N/A imgadm N/A _check_imgadm N/A imgadm N/A N/A cmd N/A N/A N/A N/A {0} update {1} format imgadm uuid rstrip N/A N/A N/A __salt__ N/A cmd.run cmd N/A N/A N/A avail N/A N/A search verbose N/A None False N/A N/A 
    Return a list of available images

    search : string
        search keyword
    verbose : boolean (False)
        toggle verbose output

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.avail [percona]
        salt '*' imgadm.avail verbose=True
     N/A ret N/A N/A imgadm N/A _check_imgadm N/A cmd N/A N/A {0} avail -j format imgadm N/A res N/A N/A __salt__ N/A cmd.run_all cmd N/A retcode N/A res N/A retcode N/A result N/A N/A N/A retcode 0 N/A N/A N/A ret N/A Error N/A _exit_status retcode N/A ret N/A image N/A N/A json loads N/A res N/A stdout N/A N/A N/A N/A N/A image N/A manifest N/A disabled N/A N/A N/A image N/A manifest N/A public N/A N/A N/A N/A search N/A search N/A N/A image N/A manifest N/A name N/A N/A N/A N/A result N/A N/A N/A image N/A manifest N/A uuid N/A _parse_image_meta image verbose N/A result N/A list_installed N/A N/A verbose N/A False N/A N/A 
    Return a list of installed images

    verbose : boolean (False)
        toggle verbose output

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.list [verbose=True]
     N/A ret N/A N/A imgadm N/A _check_imgadm N/A cmd N/A N/A {0} list -j format imgadm N/A res N/A N/A __salt__ N/A cmd.run_all cmd N/A retcode N/A res N/A retcode N/A result N/A N/A N/A retcode 0 N/A N/A N/A ret N/A Error N/A _exit_status retcode N/A ret N/A image N/A N/A json loads N/A res N/A stdout N/A N/A N/A result N/A N/A N/A image N/A manifest N/A uuid N/A _parse_image_meta image verbose N/A result N/A show N/A N/A uuid N/A N/A N/A 
    Show manifest of a given image

    uuid : string
        uuid of image

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.show e42f8c84-bbea-11e2-b920-078fab2aab1f
     N/A ret N/A N/A imgadm N/A _check_imgadm N/A cmd N/A N/A {0} show {1} format imgadm uuid N/A res N/A N/A __salt__ N/A cmd.run_all cmd python_shell False N/A retcode N/A res N/A retcode N/A N/A retcode 0 N/A N/A N/A ret N/A Error N/A _exit_status retcode N/A ret N/A ret N/A N/A json loads N/A res N/A stdout N/A ret N/A get N/A N/A uuid N/A N/A N/A 
    Return info on an installed image

    uuid : string
        uuid of image

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.get e42f8c84-bbea-11e2-b920-078fab2aab1f
     N/A ret N/A N/A imgadm N/A _check_imgadm N/A cmd N/A N/A {0} get {1} format imgadm uuid N/A res N/A N/A __salt__ N/A cmd.run_all cmd python_shell False N/A retcode N/A res N/A retcode N/A N/A retcode 0 N/A N/A N/A ret N/A Error N/A _exit_status retcode N/A ret N/A ret N/A N/A json loads N/A res N/A stdout N/A ret N/A import_image N/A N/A uuid verbose N/A False N/A N/A 
    Import an image from the repository

    uuid : string
        uuid to import
    verbose : boolean (False)
        toggle verbose output

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.import e42f8c84-bbea-11e2-b920-078fab2aab1f [verbose=True]
     N/A ret N/A N/A imgadm N/A _check_imgadm N/A cmd N/A N/A {0} import {1} format imgadm uuid N/A res N/A N/A __salt__ N/A cmd.run_all cmd python_shell False N/A retcode N/A res N/A retcode N/A N/A retcode 0 N/A N/A N/A ret N/A Error N/A _exit_status retcode N/A ret N/A N/A uuid N/A _parse_image_meta N/A get uuid verbose N/A delete N/A N/A uuid N/A N/A N/A 
    Remove an installed image

    uuid : string
        Specifies uuid to import

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.delete e42f8c84-bbea-11e2-b920-078fab2aab1f
     N/A ret N/A N/A imgadm N/A _check_imgadm N/A cmd N/A N/A {0} delete {1} format imgadm uuid N/A res N/A N/A __salt__ N/A cmd.run_all cmd python_shell False N/A retcode N/A res N/A retcode N/A N/A retcode 0 N/A N/A N/A ret N/A Error N/A _exit_status retcode N/A ret N/A result N/A N/A image N/A N/A N/A res N/A stdout splitlines N/A N/A image N/A var N/A var N/A N/A image split var N/A N/A N/A result append N/A image N/A 2 N/A result N/A vacuum N/A N/A verbose N/A False N/A N/A 
    Remove unused images

    verbose : boolean (False)
        toggle verbose output

    CLI Example:

    .. code-block:: bash

        salt '*' imgadm.vacuum [verbose=True]
     N/A ret N/A N/A imgadm N/A _check_imgadm N/A cmd N/A N/A {0} vacuum -f format imgadm N/A res N/A N/A __salt__ N/A cmd.run_all cmd N/A retcode N/A res N/A retcode N/A N/A retcode 0 N/A N/A N/A ret N/A Error N/A _exit_status retcode N/A ret N/A result N/A N/A image N/A N/A N/A res N/A stdout splitlines N/A N/A image N/A var N/A var N/A N/A image split var N/A N/A result N/A N/A image N/A 2 N/A name version N/A N/A image N/A 3 N/A 1 N/A N/A N/A image N/A 3 index @ N/A N/A image N/A 3 N/A N/A N/A N/A N/A image N/A 3 index @ 1 -1 N/A verbose N/A N/A result N/A N/A N/A list N/A N/A result keys N/A