def execute(self, display_name, public_key, config):
        logging.debug("adding user public key")
        nc = get_openstack_nova_client(config)
        self.keypair_added = False
        nc.keypairs.create(display_name, public_key)
        self.keypair_added = True