File tree Expand file tree Collapse file tree 5 files changed +22
-7
lines changed
Expand file tree Collapse file tree 5 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 11Apache CloudStack CloudMonkey Changelog
22---------------------------------------
33
4+ Version 6.2.0
5+ =============
6+ This release includes:
7+ - Validation of arguments while setting cloudmonkey configuration
8+ - Verify user access to cloudmonkey configuration file
9+ - Allow sync command to be used as a verb for cloudstack API calls
10+ - Print response with newlines if output format chosen is "text"
11+
412Version 6.1.0
513=============
614This release includes
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ MAINTAINER "Apache CloudStack" <dev@cloudstack.apache.org>
2121LABEL Description="Apache CloudStack CloudMonkey; Go based CloudStack command line interface"
2222LABEL Vendor="Apache.org"
2323LABEL License=ApacheV2
24- LABEL Version=6.1 .0
24+ LABEL Version=6.2 .0
2525
2626WORKDIR /work/
2727RUN apt -y update && apt -y install git golang-go build-essential && \
Original file line number Diff line number Diff line change @@ -71,6 +71,13 @@ Go-port of the original tool with some backward incompatibilities and reduced
7171feature set. It ships as a standalone 64-bit executable binary for several
7272platforms such as Linux, Mac and Windows.
7373
74+ ** NOTE:**
75+
76+ If cloudmonkey is being upgraded from a version lower than v6.0.0, it must be noted
77+ that the cloudmonkey configuration path is changed from ` ~/.cloudmonkey/config ` to
78+ ` ~/.cmk/config ` and a default ` localcloud ` profile is created. One would have to hence
79+ do an initial setup of basic configration such apikey/secretkey/username/password/url for the required profile(s) as required
80+
7481### License
7582
7683Licensed to the Apache Software Foundation (ASF) under one
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ func (c *Config) Name() string {
2626
2727// Version CLI
2828func (c * Config ) Version () string {
29- return "6.1 .0"
29+ return "6.2 .0"
3030}
3131
3232// PrintHeader prints startup message in CLI mode
Original file line number Diff line number Diff line change @@ -108,18 +108,18 @@ func hasAccess(path string) bool {
108108}
109109
110110func checkAndCreateDir (path string ) string {
111- isAccsessible := hasAccess (path )
112- if ! isAccsessible {
113- fmt .Println ("User isn't authorized to access the config file" )
114- os .Exit (1 )
115- }
116111 if fileInfo , err := os .Stat (path ); os .IsNotExist (err ) || ! fileInfo .IsDir () {
117112 err := os .Mkdir (path , 0700 )
118113 if err != nil {
119114 fmt .Println (err )
120115 os .Exit (1 )
121116 }
122117 }
118+ isAccsessible := hasAccess (path )
119+ if ! isAccsessible {
120+ fmt .Println ("User isn't authorized to access the config file" )
121+ os .Exit (1 )
122+ }
123123 return path
124124}
125125
You can’t perform that action at this time.
0 commit comments