def script(vm_):
    return ScriptDeployment(
        salt.utils.cloud.os_script(
            config.get_cloud_config_value('os', vm_, __opts__),
            vm_,
            __opts__,
            salt.utils.cloud.salt_config_to_yaml(
                salt.utils.cloud.minion_config(__opts__, vm_)
            )
        )
    )
Return the script deployment object
dataset/ETHPy150Open saltstack/salt/salt/cloud/libcloudfuncs.py/script