You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by se...@apache.org on 2015/05/05 15:26:21 UTC

[28/50] cloudstack-ec2stack git commit: Add custom local disk to configuration options at config time

Add custom local disk to configuration options at config time


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/commit/a4965ff3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/tree/a4965ff3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/diff/a4965ff3

Branch: refs/heads/master
Commit: a4965ff343d94f6015ac27906a14fb18f0417f9c
Parents: 32b7884
Author: BroganD1993 <da...@hotmail.com>
Authored: Fri Aug 15 12:38:53 2014 +0100
Committer: BroganD1993 <da...@hotmail.com>
Committed: Fri Aug 15 12:38:53 2014 +0100

----------------------------------------------------------------------
 ec2stack/configure.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-ec2stack/blob/a4965ff3/ec2stack/configure.py
----------------------------------------------------------------------
diff --git a/ec2stack/configure.py b/ec2stack/configure.py
index cc2e6f6..25e79d6 100644
--- a/ec2stack/configure.py
+++ b/ec2stack/configure.py
@@ -168,6 +168,16 @@ def _set_optional_attributes_of_profile(config, profile):
     @param profile: the profile to set the attribute in.
     @return: configparser configuration.
     """
+
+    configure_instance_type_mapings = raw_input(
+        'Do you wish to input a local custom storage disk? (Yes/No): '
+    )
+
+    if configure_instance_type_mapings.lower() in ['yes', 'y']:
+        config = _set_attribute_of_profile(
+            config, profile, 'cloudstack_local_custom_disk_offering', 'Cloudstack custom local disk offering name', 'CustomLocal'
+        )
+
     configure_instance_type_mapings = raw_input(
         'Do you wish to input instance type mappings? (Yes/No): '
     )