summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/host.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-03-14 14:26:14 +0100
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:19 +0200
commit3e392bbfc66e10349b3205d25039a6619a64a29d (patch)
tree0553314dd841e4a1b96d2c1fee2d67ce6b5a53df /install/ui/src/freeipa/host.js
parent166102a910bad2002819205b009694372f1f0e22 (diff)
downloadfreeipa-3e392bbfc66e10349b3205d25039a6619a64a29d.tar.gz
freeipa-3e392bbfc66e10349b3205d25039a6619a64a29d.tar.xz
freeipa-3e392bbfc66e10349b3205d25039a6619a64a29d.zip
get_primary_key function usages removed
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/host.js')
-rw-r--r--install/ui/src/freeipa/host.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/host.js b/install/ui/src/freeipa/host.js
index c7637a951..c9a7f236e 100644
--- a/install/ui/src/freeipa/host.js
+++ b/install/ui/src/freeipa/host.js
@@ -514,7 +514,7 @@ IPA.host_dnsrecord_entity_link_field = function(spec){
var that = IPA.link_field(spec);
that.other_pkeys = function(){
- var pkey = that.entity.get_primary_key()[0];
+ var pkey = that.facet.get_pkey();
var first_dot = pkey.search(/\./);
var pkeys = [];
pkeys[1] = pkey.substring(0,first_dot);
@@ -664,7 +664,7 @@ IPA.host_unprovision_dialog = function(spec) {
that.unprovision = function(on_success, on_error) {
- var pkey = that.entity.get_primary_key();
+ var pkey = that.facet.get_pkeys();
var command = IPA.command({
name: that.entity.name+'_disable_'+pkey,
@@ -866,7 +866,7 @@ IPA.host.set_otp_dialog = function(spec) {
};
that.set_otp = function(password) {
- var pkey = that.entity.get_primary_key();
+ var pkey = that.facet.get_pkeys();
var command = IPA.command({
entity: that.entity.name,