dangogh closed pull request #3155: handle the situation where a cdn has no
dnssec keys. i.e. before any …
URL: https://github.com/apache/trafficcontrol/pull/3155
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/traffic_portal/app/src/common/modules/form/cdnDnssecKeys/FormCdnDnssecKeysController.js
b/traffic_portal/app/src/common/modules/form/cdnDnssecKeys/FormCdnDnssecKeysController.js
index e2f79326c..10805287a 100644
---
a/traffic_portal/app/src/common/modules/form/cdnDnssecKeys/FormCdnDnssecKeysController.js
+++
b/traffic_portal/app/src/common/modules/form/cdnDnssecKeys/FormCdnDnssecKeysController.js
@@ -52,7 +52,7 @@ var FormCdnDnssecKeysController = function(cdn, dnssecKeys,
$scope, $location, $
$scope.hasPropertyError = formUtils.hasPropertyError;
var init = function() {
- if (dnssecKeys[cdn.name]) {
+ if (dnssecKeys && dnssecKeys[cdn.name]) {
$scope.ksk_new = _.find(dnssecKeys[cdn.name].ksk,
function(ksk) { return ksk.status == 'new' });
}
};
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services