morpheus-cli 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/morpheus/api/logs_interface.rb +1 -1
- data/lib/morpheus/cli/instances.rb +1 -1
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39fb75395a6b132a68297df37407bbe7bf0e3c7f
|
|
4
|
+
data.tar.gz: fdf54e913e1b577e69d115965f7d6eefaf4dd823
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d89e548b996541eca66a5bdf3e345f88f6786cbbe3ecfdfae315fa770a5c7ead2525ebc65978d944aae49204631da87850c7f59ad223cf05e08b61739b43eee
|
|
7
|
+
data.tar.gz: 43131e8b92380e41508481aa7df37318c05168b2967ab2965c72f7fd56c412e4c980a877e36bb47b1110664ce3b45cd9411f1ccbde1a1f5ec9ed016f4cb0eca1
|
|
@@ -19,7 +19,7 @@ class Morpheus::LogsInterface < Morpheus::APIClient
|
|
|
19
19
|
|
|
20
20
|
def server_logs(servers=[], options={})
|
|
21
21
|
url = "#{@base_url}/api/logs"
|
|
22
|
-
headers = { params: {'servers'
|
|
22
|
+
headers = { params: {'servers' => servers}.merge(options), authorization: "Bearer #{@access_token}" }
|
|
23
23
|
response = Morpheus::RestClient.execute(method: :get, url: url,
|
|
24
24
|
timeout: 30, headers: headers, verify_ssl: false)
|
|
25
25
|
JSON.parse(response.to_s)
|
|
@@ -160,7 +160,7 @@ class Morpheus::Cli::Instances
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
version_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldName' => 'version', 'type' => 'select', 'fieldLabel' => 'Version', 'optionSource' => 'instanceVersions', 'required' => true, 'skipSingleOption'
|
|
163
|
+
version_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldName' => 'version', 'type' => 'select', 'fieldLabel' => 'Version', 'optionSource' => 'instanceVersions', 'required' => true, 'skipSingleOption' => true, 'description' => 'Select which version of the instance type to be provisioned.'}],options[:options],@api_client,{groupId: groupId, cloudId: cloud, instanceTypeId: instance_type['id']})
|
|
164
164
|
layout_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldName' => 'layout', 'type' => 'select', 'fieldLabel' => 'Layout', 'optionSource' => 'layoutsForCloud', 'required' => true, 'description' => 'Select which configuration of the instance type to be provisioned.'}],options[:options],@api_client,{groupId: groupId, cloudId: cloud, instanceTypeId: instance_type['id'], version: version_prompt['version']})
|
|
165
165
|
layout_id = layout_prompt['layout']
|
|
166
166
|
plan_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldName' => 'servicePlan', 'type' => 'select', 'fieldLabel' => 'Plan', 'optionSource' => 'instanceServicePlans', 'required' => true, 'description' => 'Choose the appropriately sized plan for this instance'}],options[:options],@api_client,{groupId: groupId, zoneId: cloud, instanceTypeId: instance_type['id'], layoutId: layout_id, version: version_prompt['version']})
|
data/lib/morpheus/cli/version.rb
CHANGED