morpheus-cli 5.2.0 → 5.2.4.1

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "5.2.0"
4
+ VERSION = "5.2.4.1"
5
5
  end
6
6
  end
@@ -299,7 +299,7 @@ EOT
299
299
  opts.on('--tags LIST', String, "Tags in the format 'name:value, name:value'. This will add and remove tags.") do |val|
300
300
  options[:tags] = val
301
301
  end
302
- opts.on('--add-tags TAGS', String, "Add Tags in the format 'name:value, name:value'. This will only add/update project tags.") do |val|
302
+ opts.on('--add-tags TAGS', String, "Add Tags in the format 'name:value, name:value'. This will only add/update tags.") do |val|
303
303
  options[:add_tags] = val
304
304
  end
305
305
  opts.on('--remove-tags TAGS', String, "Remove Tags in the format 'name, name:value'. This removes tags, the :value component is optional and must match if passed.") do |val|
@@ -15,11 +15,7 @@ def parse_time(dt, format=nil)
15
15
  elsif dt.is_a?(String)
16
16
  result = nil
17
17
  err = nil
18
- begin
19
- result = Time.parse(dt)
20
- rescue => e
21
- err = e
22
- end
18
+
23
19
  if !result
24
20
  format ||= DEFAULT_TIME_FORMAT
25
21
  if format
@@ -29,12 +25,26 @@ def parse_time(dt, format=nil)
29
25
  err = e
30
26
  end
31
27
  end
32
- if !result
33
- begin
34
- result = Time.strptime(dt, ALTERNATE_TIME_FORMAT)
35
- rescue => e
36
- err = e
37
- end
28
+ end
29
+ if !result
30
+ begin
31
+ result = Time.strptime(dt, ALTERNATE_TIME_FORMAT)
32
+ rescue => e
33
+ # err = e
34
+ end
35
+ end
36
+ if !result
37
+ begin
38
+ result = Time.strptime(dt, DEFAULT_DATE_FORMAT)
39
+ rescue => e
40
+ # err = e
41
+ end
42
+ end
43
+ if !result
44
+ begin
45
+ result = Time.parse(dt)
46
+ rescue => e
47
+ err = e
38
48
  end
39
49
  end
40
50
  if result
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpheus-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-11-10 00:00:00.000000000 Z
14
+ date: 2021-02-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler