The openstack_dashboard.dashboards.project.data_processing.utils.helpers ModuleΒΆ

class openstack_dashboard.dashboards.project.data_processing.utils.helpers.Helpers(request)[source]

Bases: object

get_cluster_general_configs(plugin_name, hadoop_version)[source]
get_general_node_group_configs(plugin_name, hadoop_version)[source]
get_node_processes(plugin_name, hadoop_version)[source]
get_targeted_cluster_configs(plugin_name, hadoop_version)[source]
get_targeted_node_group_configs(plugin_name, hadoop_version)[source]
is_from_guide()[source]
reset_guide()[source]
reset_job_guide()[source]
to_time_zone(datetime, tzone=None, input_fmt=None, localize=False)[source]

Changes given datetime string into given timezone

Parameters:
  • datetime – datetime string
  • tzone – (optional) timezone as a string (e.g. “Europe/Paris”), by default it’s the current django timezone
  • input_fmt – (optional) format of datetime param, if None then the default Sahara API format (%Y-%m-%dT%H:%M:%S) will be used
  • localize – (optional) if True then format of datetime will be localized according to current timezone else it will be in the default Sahara API format (%Y-%m-%dT%H:%M:%S)

:return datetime string in the current django timezone

Previous topic

The openstack_dashboard.dashboards.project.data_processing.utils.anti_affinity Module

Next topic

The openstack_dashboard.dashboards.project.data_processing.wizard.views Module

This Page