Skip to content
Snippets Groups Projects
Commit 80770c98 authored by Yas Naoi's avatar Yas Naoi
Browse files

by yas: Expanded the length of AWS Access Key up to 32.

parent 92efae9b
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ function aws_cloud_schema() { ...@@ -49,7 +49,7 @@ function aws_cloud_schema() {
'cloud_name' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 64), 'cloud_name' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 64),
'api_version' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 10), 'api_version' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 10),
'host_uri' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 64), 'host_uri' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 64),
'aws_access_key' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 20), 'aws_access_key' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 32),
'aws_secret_key' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 64), 'aws_secret_key' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 64),
'user_id' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 32), 'user_id' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 32),
'image_upload_url' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 64), 'image_upload_url' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 64),
......
...@@ -210,8 +210,8 @@ function aws_cloud_add_form($form_state, $edit = array(), $op = '') { ...@@ -210,8 +210,8 @@ function aws_cloud_add_form($form_state, $edit = array(), $op = '') {
$form['cloud']['aws_access_key'] = array( $form['cloud']['aws_access_key'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Access Key'), '#title' => t('Access Key'),
'#description' => t('e.g. AWS: 12ABCDEFGHIJKVWXYZ89 or OpenStack: admin:admin'), '#description' => t('16-32 Characters, e.g. AWS: 12ABCDEFGHIJKVWXYZ89 or OpenStack: admin:admin'),
'#size' => 30, '#size' => 32,
'#required' => TRUE, '#required' => TRUE,
'#default_value' => $edit['aws_access_key'], '#default_value' => $edit['aws_access_key'],
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment