The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to use whmapi1 to disable a feature

Discussion in 'cPanel Developers' started by ltellier, Aug 23, 2016.

Tags:
  1. ltellier

    ltellier Member

    Joined:
    Aug 23, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Montreal
    cPanel Access Level:
    DataCenter Provider
    Hi,

    We're still new to the cpanel's API.
    We'd like to automate deployment of our cpanel servers and would like to disable some features from the default feature list.

    We've been trying to use the following command but so far, it appears to be disabling ALL features from the default feature list:

    Code:
    whmapi1 update_featurelist featurelist=default autossl=0
    Do you guys have any ideas what might be wrong ?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Thanks for the report!

    I've reproduced this issue and opened internal case CPANEL-8271 to address the problem. I'll update this thread with more information on the status of this case as it becomes available. In the meantime, the temporary workaround is to edit the feature list via "WHM >> Feature Manager" or by manually editing /var/cpanel/features/$feature-list-name.

    Thank you.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    To update, this is fixed in cPanel version 60 (tentatively planned for publication to the "Current" build tier in October):

    Fixed case CPANEL-8271: update_featurelist: allow editing only one feature via API.

    Thank you.
     
Loading...

Share This Page