Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/storage/purestorage/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_arrayname.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
Z
ddlmZdd
l
mZmZd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bysR
---
module: purefa_arrayname
version_added: '2.9'
short_description: Configure Pure Storage FlashArray array name
description:
- Configure name of array for Pure Storage FlashArrays.
- Ideal for Day 0 initial configuration.
author:
- Pure Storage Ansible Team (@sdodsley) <[email protected]>
options:
  state:
    description: Set the array name
    type: str
    default: present
    choices: [ present ]
  name:
    description:
    - Name of the array. Must conform to correct naming schema.
    type: str
    required: true
extends_documentation_fragment:
- purestorage.fa
s�
- name: Set new array name
  purefa_arrayname:
    name: new-array-name
    state: present
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
t
N(t
AnsibleModule(t
get_systemtpurefa_argument_speccC`sot}y!|jd|jd�t}Wn1tk
rZ|jddj|jd��nX|jd|�dS(sChange array nametnametmsgs"Failed to change array name to {0}tchangedN(tFalsetsettparamstTruet	Exceptiont	fail_jsontformatt	exit_json(tmoduletarrayR((sX/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_arrayname.pytupdate_name8s

$cC`s�t�}|jtdtdddt�dtddddddg���t|d	t�}t|�}tjd
�}|j	|j
d�s�|jddj|j
d��n|j
d|j
�d
kr�t||�n|jdt�dS(NRttypetstrtrequiredtstatetdefaulttpresenttchoicestsupports_check_modes-^[a-zA-Z0-9]([a-zA-Z0-9-]{0,54}[a-zA-Z0-9])?$R
sGArray name {0} does not conform to array name rules. See documentation.t
array_nameR(RtupdatetdictRR	RR
tretcompiletmatchRRRtgetRR(t
argument_specRRtpattern((sX/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_arrayname.pytmainEs	"		#t__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNR%tansible.module_utils.basicR	tansible.module_utils.pureR
RRR+t__name__(((sX/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_arrayname.pyt<module>s


		
	

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]