Comments (8)
FYI, comment out below line and I can import the buttons.
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake
146 #custom_button['applies_to_exp'] = cb['applies_to_exp']
from servicenow_cmdb.
I have never tested this on the master branch. What happens if you export an existing button from master? What does the yml file look like? Specifically what does the applies_to_exp
section in the yml look like?
from servicenow_cmdb.
It works to export an existing button, but the yml looks different. applies_to_exp doesn't exist.
:custom_buttons_sets:
- name: eee|Vm|
description: eeee
set_type: CustomButtonSet
read_only:
mode:
custom_buttons:- description: test button
applies_to_class: Vm
options:
:button_icon: noicon
:display: true
:open_url: false
:display_for: single
:submit_how: one
userid: demo
wait_for_complete:
name: test button
visibility:
:roles:- ALL
applies_to_id:
resource_actions:
action:
ae_namespace: SYSTEM
ae_class: PROCESS
ae_instance: Request
ae_message:
ae_attributes:
request: test_invalid
set_data:
:button_order: - test button
:button_icon: ffff
:display: true
:group_index: 1
- ALL
- description: test button
from servicenow_cmdb.
So try removing the applies_to_exp from the yml and try the import again.
from servicenow_cmdb.
Did that work?
from servicenow_cmdb.
I removed 3 occurrences of "applies_to_exp" in ServiceNow_CMDB_Vm_.yaml.
Still getting same error message.
[root@miq02 ~]# /usr/bin/miqimport buttons /root/ServiceNow_CMDB/buttons/ServiceNow_CMDB_Vm_.yaml
/var/www/miq/vmdb ~
Button Class: [Vm]
Button Group: [ServiceNow_CMDB]
Adding Button: Update CMDB Record
rake aborted!
ActiveModel::MissingAttributeError: can't write unknown attribute `applies_to_exp`
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:146:in `block in import_custom_buttons'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:121:in `each'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:121:in `import_custom_buttons'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:184:in `block in import_custom_button_sets'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:172:in `each'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:172:in `import_custom_button_sets'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:63:in `block in import_file'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:62:in `import_file'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:9:in `import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:269:in `block (3 levels) in <top (required)>'
Tasks: TOP => rhconsulting:buttons:import
(See full trace by running task with --trace)
~
[root@miq02 ~]# grep applies_to_exp /root/ServiceNow_CMDB/buttons/ServiceNow_CMDB_Vm_.yaml
[root@va32lmiq02 ~]# date
Wed Aug 2 13:30:21 EDT 2017
[root@miq02 ~]#
from servicenow_cmdb.
Since you are running on master and not CloudForms i am not sure i will be able to help. Except that the issue is probably related to the import utilities. I would open an issue with https://github.com/rhtconsulting/cfme-rhconsulting-scripts. Since they are the author of the import scripts.
Closing issue.
from servicenow_cmdb.
Thanks for the help @ramrexx and @easyljy.
from servicenow_cmdb.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servicenow_cmdb.