diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-02-09 21:52:42 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-02-09 21:52:42 +0100 |
| commit | d81b4067a5997f955037995da32110b9ff5213e3 (patch) | |
| tree | efa60c4feda9d1c1fde0252543c1e635bd5c236b /src/CLI/report.cpp | |
| parent | 2b6d0fc5c8e4472bc88db4075d2e63b4f01fbbe5 (diff) | |
| parent | d0f19e435b5a3fecb3fd74b1ba0202364e6dc545 (diff) | |
Merge branch 'master' into rhel6
Diffstat (limited to 'src/CLI/report.cpp')
| -rw-r--r-- | src/CLI/report.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CLI/report.cpp b/src/CLI/report.cpp index 7ef33ac..6a8f9f4 100644 --- a/src/CLI/report.cpp +++ b/src/CLI/report.cpp @@ -427,12 +427,12 @@ int report(const char *uuid, bool always) // Skip nonReporter plugins. if (0 != strcmp(it->second["Type"].c_str(), "Reporter")) continue; - + map_string_t settings = call_GetPluginSettings(it->first.c_str()); // Login information is missing. - bool loginMissing = settings.find("Login") != settings.end() + bool loginMissing = settings.find("Login") != settings.end() && 0 == strcmp(settings["Login"].c_str(), ""); - bool passwordMissing = settings.find("Password") != settings.end() + bool passwordMissing = settings.find("Password") != settings.end() && 0 == strcmp(settings["Password"].c_str(), ""); if (!loginMissing && !passwordMissing) continue; @@ -461,7 +461,7 @@ int report(const char *uuid, bool always) fgets(answer, sizeof(answer), stdin); if (strlen(answer) > 0) pluginSettings[it->first]["Password"] = answer; - } + } } } @@ -475,7 +475,7 @@ int report(const char *uuid, bool always) vector_string_t &v = it->second; printf("%s: %s\n", it->first.c_str(), v[REPORT_STATUS_IDX_MSG].c_str()); plugins++; - if (v[REPORT_STATUS_IDX_FLAG] != "0") + if (v[REPORT_STATUS_IDX_FLAG] == "0") errors++; it++; } |
