Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c0384a04
Commit
c0384a04
authored
Apr 23, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cli_upgradeFix'
parents
29a2b203
ee0c4cd1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
CHANGELOG.md
+1
-0
pkg/cmd/grafana-cli/commands/commands.go
+2
-1
pkg/cmd/grafana-cli/commands/install_command.go
+7
-2
No files found.
CHANGELOG.md
View file @
c0384a04
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
*
**Dashlist**
: Fixed issue dashboard list panel and caching tags, fixes
[
#4768
](
https://github.com/grafana/grafana/issues/4768
)
*
**Dashlist**
: Fixed issue dashboard list panel and caching tags, fixes
[
#4768
](
https://github.com/grafana/grafana/issues/4768
)
*
**Graph**
: Fixed issue with unneeded scrollbar in legend for Firefox, fixes
[
#4760
](
https://github.com/grafana/grafana/issues/4760
)
*
**Graph**
: Fixed issue with unneeded scrollbar in legend for Firefox, fixes
[
#4760
](
https://github.com/grafana/grafana/issues/4760
)
*
**Table panel**
: Fixed issue table panel formating string array properties, fixes
[
#4791
](
https://github.com/grafana/grafana/issues/4791
)
*
**Table panel**
: Fixed issue table panel formating string array properties, fixes
[
#4791
](
https://github.com/grafana/grafana/issues/4791
)
*
**grafana-cli**
: Improve error message when failing to install plugins due to corrupt response, fixes
[
#4651
](
https://github.com/grafana/grafana/issues/4651
)
# 3.0.0-beta5 (2016-04-15)
# 3.0.0-beta5 (2016-04-15)
...
...
pkg/cmd/grafana-cli/commands/commands.go
View file @
c0384a04
...
@@ -4,6 +4,7 @@ import (
...
@@ -4,6 +4,7 @@ import (
"os"
"os"
"github.com/codegangsta/cli"
"github.com/codegangsta/cli"
"github.com/fatih/color"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/log"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/log"
)
)
...
@@ -12,7 +13,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
...
@@ -12,7 +13,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
cmd
:=
&
contextCommandLine
{
context
}
cmd
:=
&
contextCommandLine
{
context
}
if
err
:=
command
(
cmd
);
err
!=
nil
{
if
err
:=
command
(
cmd
);
err
!=
nil
{
log
.
Error
(
"
\n
Error: "
)
log
.
Error
f
(
"
\n
%s: "
,
color
.
RedString
(
"Error"
)
)
log
.
Errorf
(
"%s
\n\n
"
,
err
)
log
.
Errorf
(
"%s
\n\n
"
,
err
)
cmd
.
ShowHelp
()
cmd
.
ShowHelp
()
...
...
pkg/cmd/grafana-cli/commands/install_command.go
View file @
c0384a04
...
@@ -127,12 +127,17 @@ func downloadFile(pluginName, filePath, url string) (err error) {
...
@@ -127,12 +127,17 @@ func downloadFile(pluginName, filePath, url string) (err error) {
if
r
:=
recover
();
r
!=
nil
{
if
r
:=
recover
();
r
!=
nil
{
retryCount
++
retryCount
++
if
retryCount
<
3
{
if
retryCount
<
3
{
fmt
.
Printf
(
"
\n
Failed downloading. Will retry once.
\n
%v
\n
"
,
r
)
fmt
.
Println
(
"Failed downloading. Will retry once."
)
downloadFile
(
pluginName
,
filePath
,
url
)
err
=
downloadFile
(
pluginName
,
filePath
,
url
)
}
else
{
failure
:=
fmt
.
Sprintf
(
"%v"
,
r
)
if
failure
==
"runtime error: makeslice: len out of range"
{
err
=
fmt
.
Errorf
(
"Corrupt http response from source. Please try again.
\n
"
)
}
else
{
}
else
{
panic
(
r
)
panic
(
r
)
}
}
}
}
}
}()
}()
resp
,
err
:=
http
.
Get
(
url
)
resp
,
err
:=
http
.
Get
(
url
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment